Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 791863e

Browse filesBrowse files
committed
nit, use PTI
1 parent b4bd267 commit 791863e
Copy full SHA for 791863e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Copy file name to clipboardExpand all lines: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.