Skip to content

Commit 4de7d40

Browse files
committed
fix(llvm_backend): correct basic value handling and add unimplemented case for intrinsics
1 parent f59b6f0 commit 4de7d40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/compiler/src/llvm_backend.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,8 +2541,7 @@ impl<'ctx> LLVMBackend<'ctx> {
25412541
self.builder.build_call(box_fn, &[arg_val.into()], "box")
25422542
{
25432543
call_site
2544-
.try_as_basic_value()
2545-
.left()
2544+
.try_as_basic_value().basic()
25462545
.unwrap_or(arg_val)
25472546
.into()
25482547
} else {
@@ -2998,6 +2997,7 @@ impl<'ctx> LLVMBackend<'ctx> {
29982997
format!("Intrinsic {:?} not yet implemented in LLVM backend", intrinsic)
29992998
))
30002999
}
3000+
_ => todo!()
30013001
}
30023002
}
30033003

0 commit comments

Comments
 (0)