diff --git a/lib/Target/ARM/ARMTargetTransformInfo.cpp b/lib/Target/ARM/ARMTargetTransformInfo.cpp index 5f0fbd03cc9..a57a4049dbc 100644 --- a/lib/Target/ARM/ARMTargetTransformInfo.cpp +++ b/lib/Target/ARM/ARMTargetTransformInfo.cpp @@ -806,7 +806,7 @@ bool ARMTTIImpl::isHardwareLoopProfitable(Loop *L, ScalarEvolution &SE, auto IsHardwareLoopIntrinsic = [](Instruction &I) { if (auto *Call = dyn_cast(&I)) { - switch (Call->getCalledFunction()->getIntrinsicID()) { + switch (Call->getIntrinsicID()) { default: break; case Intrinsic::set_loop_iterations: