Remove unreachable code

This commit is contained in:
gnzlbg 2019-09-25 10:33:12 +02:00
parent 3a6e96e8bc
commit 97ce904340

View file

@ -249,11 +249,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
match instance.def {
ty::InstanceDef::Intrinsic(..) => {
if let Abi::RustIntrinsic | Abi::PlatformIntrinsic = caller_abi {
// ok
} else {
throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic))
}
// The intrinsic itself cannot diverge, so if we got here without a return
// place... (can happen e.g., for transmute returning `!`)
let dest = match dest {