diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-12-14 19:30:46 +0100 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-12-14 19:30:46 +0100 | 
| commit | 949699931e4370d4a0d65b896bb5d73f35609528 (patch) | |
| tree | 20c124f7a91d207bf24c9594ee42981a7caea325 /compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs | |
| parent | ba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d (diff) | |
| parent | 2bb3996244cf1b89878da9e39841e9f6bf061602 (diff) | |
| download | rust-949699931e4370d4a0d65b896bb5d73f35609528.tar.gz rust-949699931e4370d4a0d65b896bb5d73f35609528.zip | |
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs index d26392c4913..493359c743f 100644 --- a/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs +++ b/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs @@ -39,7 +39,9 @@ impl UnwindContext { } pub(crate) fn add_function(&mut self, func_id: FuncId, context: &Context, isa: &dyn TargetIsa) { - let unwind_info = if let Some(unwind_info) = context.create_unwind_info(isa).unwrap() { + let unwind_info = if let Some(unwind_info) = + context.compiled_code().unwrap().create_unwind_info(isa).unwrap() + { unwind_info } else { return; | 
