Skip to content

Commit 777106a

Browse files
committed
Fix warning
1 parent 16a2641 commit 777106a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/debuginfo/unwind.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ impl UnwindContext {
3939
}
4040

4141
pub(crate) fn add_function(&mut self, func_id: FuncId, context: &Context, isa: &dyn TargetIsa) {
42-
let unwind_info = if let Some(unwind_info) = context.create_unwind_info(isa).unwrap() {
42+
let unwind_info = if let Some(unwind_info) =
43+
context.compiled_code().unwrap().create_unwind_info(isa).unwrap()
44+
{
4345
unwind_info
4446
} else {
4547
return;

0 commit comments

Comments
 (0)