Skip to content

Commit 791863e

Browse files
committed
nit, use PTI
1 parent b4bd267 commit 791863e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,12 @@ static void cloneInstructionsIntoPredecessorBlockAndUpdateSSAUses(
11921192
// pred's terminator already has atom info do nothing as merging would drop
11931193
// one atom group anyway. If it doesn't, propagte the remapped atom group
11941194
// from BB's terminator.
1195-
if (auto &PredDL = PredBlock->getTerminator()->getDebugLoc()) {
1195+
if (auto &PredDL = PTI->getDebugLoc()) {
11961196
auto &DL = BB->getTerminator()->getDebugLoc();
11971197
if (!PredDL->getAtomGroup() && DL && DL->getAtomGroup() &&
11981198
PredDL.isSameSourceLocation(DL)) {
1199-
PredBlock->getTerminator()->setDebugLoc(DL);
1200-
RemapSourceAtom(PredBlock->getTerminator(), VMap);
1199+
PTI->setDebugLoc(DL);
1200+
RemapSourceAtom(PTI, VMap);
12011201
}
12021202
}
12031203
}

0 commit comments

Comments
 (0)