1
Fork 0

Remove old intrinsic check

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

View file

@ -264,11 +264,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
match instance.def { match instance.def {
ty::InstanceDef::Intrinsic(..) => { ty::InstanceDef::Intrinsic(..) => {
if caller_abi != Abi::RustIntrinsic {
throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic))
}
M::call_intrinsic(self, span, instance, args, dest)?; M::call_intrinsic(self, span, instance, args, dest)?;
// No stack frame gets pushed, the main loop will just act as if the // No stack frame gets pushed, the main loop will just act as if the
// call completed. // call completed.