Skip to content

Commit 4380641

Browse files
Address a comment.
1 parent 4c5b167 commit 4380641

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/IPO/GlobalOpt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ CleanupPointerRootUsers(GlobalVariable *GV,
250250
}
251251
}
252252

253-
for (const auto [I, Store] : Dead) {
254-
if (IsSafeComputationToRemove(Pair.first, GetTLI)) {
255-
Pair.second->eraseFromParent();
256-
Instruction *I = Pair.first;
253+
for (const auto &[Inst, Store] : Dead) {
254+
if (IsSafeComputationToRemove(Inst, GetTLI)) {
255+
Store->eraseFromParent();
256+
Instruction *I = Inst;
257257
do {
258258
if (isAllocationFn(I, GetTLI))
259259
break;

0 commit comments

Comments
 (0)