no more codegen for miri_start_panic
This commit is contained in:
parent
79cd224e75
commit
4e867535f3
1 changed files with 2 additions and 5 deletions
|
@ -515,12 +515,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
return;
|
||||
}
|
||||
|
||||
// For normal codegen, this Miri-specific intrinsic is just a NOP.
|
||||
// For normal codegen, this Miri-specific intrinsic should never occur.
|
||||
if intrinsic == Some("miri_start_panic") {
|
||||
let target = destination.as_ref().unwrap().1;
|
||||
helper.maybe_sideeffect(self.mir, &mut bx, &[target]);
|
||||
helper.funclet_br(self, &mut bx, target);
|
||||
return;
|
||||
bug!("`miri_start_panic` should never end up in compiled code");
|
||||
}
|
||||
|
||||
// Emit a panic or a no-op for `panic_if_uninhabited`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue