Skip to content

Commit 4c5b167

Browse files
Update llvm/lib/Transforms/IPO/GlobalOpt.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 4ca2972 commit 4c5b167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/GlobalOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ CleanupPointerRootUsers(GlobalVariable *GV,
250250
}
251251
}
252252

253-
for (const auto &Pair : Dead) {
253+
for (const auto [I, Store] : Dead) {
254254
if (IsSafeComputationToRemove(Pair.first, GetTLI)) {
255255
Pair.second->eraseFromParent();
256256
Instruction *I = Pair.first;

0 commit comments

Comments
 (0)