mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
@@ -496,7 +496,9 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
|
||||
}
|
||||
ty::FnDef(def_id, args) => {
|
||||
let instance = self.resolve(def_id, args.no_bound_vars().unwrap())?;
|
||||
// Don't compute FnAbi for LLVM intrinsics. Trying to that would panic.
|
||||
// Don't compute FnAbi for LLVM intrinsics. Trying to do that would panic.
|
||||
// Rust intrinsics however *do* need a FnAbi as we may invoke the
|
||||
// fallback body like a regular function.
|
||||
let has_fn_abi = !matches!(instance.def, ty::InstanceKind::LlvmIntrinsic(_));
|
||||
(
|
||||
FnVal::Instance(instance),
|
||||
|
||||
@@ -223,6 +223,7 @@ fn check_call_site_abi<'tcx>(
|
||||
DUMMY_SP,
|
||||
);
|
||||
if let InstanceKind::LlvmIntrinsic(..) = instance.def {
|
||||
// LLVM intrinsics don't have an ABI, so there is nothing to check.
|
||||
return;
|
||||
}
|
||||
tcx.fn_abi_of_instance(typing_env.as_query_input((instance, ty::List::empty())))
|
||||
|
||||
Reference in New Issue
Block a user