Teach llvm backend how to fall back to default bodies

This commit is contained in:
Oli Scherer
2024-01-31 20:39:59 +00:00
parent 432635a9ea
commit 9a0743747f
11 changed files with 109 additions and 103 deletions

View File

@@ -396,9 +396,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
source_info,
) {
Ok(()) => return,
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
// by converting the `InstanceDef::Intrinsic` to an `InstanceDef::Item`.
Err(()) => Some(Instance::new(instance.def_id(), instance.args)),
Err(instance) => Some(instance),
}
}
InstanceDef::DropGlue(_, None) => {