diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-06-30 11:28:14 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-06-30 11:28:14 +0000 |
| commit | 5adaed06a0326a567ce0571ba1cdbf503f99bf86 (patch) | |
| tree | 167917f389679c1df6b0c6c2ed34c76e986b2e38 /src/base.rs | |
| parent | f1052eb253580ce2adbcc7a24b15e291e4f0c760 (diff) | |
Merge commit '49cd5dd454d0115cfbe9e39102a8b3ba4616aa40' into sync_cg_clif-2024-06-30
Diffstat (limited to 'src/base.rs')
| -rw-r--r-- | src/base.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/base.rs b/src/base.rs index b117dc496c2..c5b4277015a 100644 --- a/src/base.rs +++ b/src/base.rs @@ -249,9 +249,7 @@ pub(crate) fn compile_fn( } // Define debuginfo for function - let isa = module.isa(); let debug_context = &mut cx.debug_context; - let unwind_context = &mut cx.unwind_context; cx.profiler.generic_activity("generate debug info").run(|| { if let Some(debug_context) = debug_context { codegened_func.func_debug_cx.unwrap().finalize( @@ -260,7 +258,6 @@ pub(crate) fn compile_fn( context, ); } - unwind_context.add_function(codegened_func.func_id, &context, isa); }); } @@ -909,7 +906,7 @@ fn codegen_stmt<'tcx>( | StatementKind::PlaceMention(..) | StatementKind::AscribeUserType(..) => {} - StatementKind::Coverage { .. } => fx.tcx.dcx().fatal("-Zcoverage is unimplemented"), + StatementKind::Coverage { .. } => unreachable!(), StatementKind::Intrinsic(ref intrinsic) => match &**intrinsic { // We ignore `assume` intrinsics, they are only useful for optimizations NonDivergingIntrinsic::Assume(_) => {} |
