Fix incorrect unwrap of dest

This commit is contained in:
Aaron Hill 2019-09-26 13:11:56 -04:00
parent 199101822a
commit fa4f1b79ec
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -269,12 +269,6 @@ fn eval_fn_call(
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 {
Some(dest) => dest,
None => throw_ub!(Unreachable)
};
M::call_intrinsic(self, span, instance, args, dest)?;
// No stack frame gets pushed, the main loop will just act as if the
// call completed.