about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-14 19:30:46 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-14 19:30:46 +0100
commit949699931e4370d4a0d65b896bb5d73f35609528 (patch)
tree20c124f7a91d207bf24c9594ee42981a7caea325 /compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs
parentba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d (diff)
parent2bb3996244cf1b89878da9e39841e9f6bf061602 (diff)
downloadrust-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.rs4
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;