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.
2 parents 7e10f1a + f7c76ad commit e3d70e2Copy full SHA for e3d70e2
src/abi/mod.rs
@@ -348,10 +348,9 @@ pub(crate) fn codegen_terminator_call<'tcx>(
348
349
// Handle special calls like intrinsics and empty drop glue.
350
let instance = if let ty::FnDef(def_id, substs) = *func.layout().ty.kind() {
351
- let instance = ty::Instance::resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
352
- .unwrap()
353
354
- .polymorphize(fx.tcx);
+ let instance =
+ ty::Instance::expect_resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
+ .polymorphize(fx.tcx);
355
356
if fx.tcx.symbol_name(instance).name.starts_with("llvm.") {
357
crate::intrinsics::codegen_llvm_intrinsic_call(
0 commit comments