We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34336b8 commit f7c76adCopy full SHA for f7c76ad
src/abi/mod.rs
@@ -349,10 +349,9 @@ pub(crate) fn codegen_terminator_call<'tcx>(
349
350
// Handle special calls like intrinsics and empty drop glue.
351
let instance = if let ty::FnDef(def_id, substs) = *fn_ty.kind() {
352
- let instance = ty::Instance::resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
353
- .unwrap()
354
355
- .polymorphize(fx.tcx);
+ let instance =
+ ty::Instance::expect_resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
+ .polymorphize(fx.tcx);
356
357
if fx.tcx.symbol_name(instance).name.starts_with("llvm.") {
358
crate::intrinsics::codegen_llvm_intrinsic_call(
0 commit comments