ICE on invalid MIR
This commit is contained in:
parent
09180d71fd
commit
8952c8aa42
1 changed files with 1 additions and 4 deletions
|
@ -264,10 +264,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
|
||||
match instance.def {
|
||||
ty::InstanceDef::Intrinsic(..) => {
|
||||
if caller_abi != Abi::RustIntrinsic && caller_abi != Abi::PlatformIntrinsic {
|
||||
throw_ub_format!("Rust intrinsic called with an ABI other than \
|
||||
`RustIntrinsic` and `PlatformIntrinsic`.");
|
||||
}
|
||||
assert!(caller_abi == Abi::RustIntrinsic || caller_abi == Abi::PlatformIntrinsic);
|
||||
|
||||
let old_stack = self.cur_frame();
|
||||
let old_bb = self.frame().block;
|
||||
|
|
Loading…
Add table
Reference in a new issue