Skip to content

Commit 3ece9fa

Browse files
committed
Remove dead code
1 parent d68b50e commit 3ece9fa

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/intrinsics/llvm.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,7 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
1212
args: &[mir::Operand<'tcx>],
1313
destination: Option<(CPlace<'tcx>, BasicBlock)>,
1414
) {
15-
let ret = match destination {
16-
Some((place, _)) => place,
17-
None => {
18-
// Insert non returning intrinsics here
19-
match intrinsic {
20-
"abort" => {
21-
trap_panic(fx, "Called intrinsic::abort.");
22-
}
23-
"unreachable" => {
24-
trap_unreachable(fx, "[corruption] Called intrinsic::unreachable.");
25-
}
26-
_ => unimplemented!("unsupported instrinsic {}", intrinsic),
27-
}
28-
return;
29-
}
30-
};
15+
let ret = destination.unwrap().0;
3116

3217
intrinsic_match! {
3318
fx, intrinsic, substs, args,

0 commit comments

Comments
 (0)