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 bc7487d commit c9a87b4Copy full SHA for c9a87b4
llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
@@ -566,7 +566,7 @@ void VPlanTransforms::prepareForVectorization(
566
// the corresponding compare because they may have ended up with different
567
// line numbers and we want to avoid awkward line stepping while debugging.
568
// E.g., if the compare has got a line number inside the loop.
569
- DebugLoc LatchDL = TheLoop->getLoopLatch()->getTerminator()->getDebugLoc();
+ DebugLoc LatchDL = LatchVPBB->getTerminator()->getDebugLoc();
570
VPBuilder Builder(MiddleVPBB);
571
VPValue *Cmp;
572
if (!RequiresScalarEpilogueCheck)
0 commit comments