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 4c5b167 commit 4380641Copy full SHA for 4380641
llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -250,10 +250,10 @@ CleanupPointerRootUsers(GlobalVariable *GV,
250
}
251
252
253
- for (const auto [I, Store] : Dead) {
254
- if (IsSafeComputationToRemove(Pair.first, GetTLI)) {
255
- Pair.second->eraseFromParent();
256
- Instruction *I = Pair.first;
+ for (const auto &[Inst, Store] : Dead) {
+ if (IsSafeComputationToRemove(Inst, GetTLI)) {
+ Store->eraseFromParent();
+ Instruction *I = Inst;
257
do {
258
if (isAllocationFn(I, GetTLI))
259
break;
0 commit comments