Skip to content

Commit ac3ee1b

Browse files
committed
[Transforms] Fix -Wunused-variable and remove redundant VerifyStates after llvm#75826 (NFC)
llvm-project/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp:1064:18: error: unused variable 'I' [-Werror,-Wunused-variable] Instruction *I = cast<Instruction>(Pair.first); ^ llvm-project/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp:1066:11: error: unused variable 'BaseValue' [-Werror,-Wunused-variable] auto *BaseValue = State.getBaseValue(); ^ 2 errors generated.
1 parent ebb853f commit ac3ee1b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,6 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &Cache,
10561056
for (const auto &Pair : States) {
10571057
LLVM_DEBUG(dbgs() << " " << Pair.second << " for " << *Pair.first << "\n");
10581058
}
1059-
#endif
10601059

10611060
// since we do the conflict marking as part of the fixpoint iteration this
10621061
// loop only asserts that invariants are met
@@ -1072,9 +1071,6 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &Cache,
10721071
"why did it get added?");
10731072
assert(!State.isUnknown() && "Optimistic algorithm didn't complete!");
10741073
}
1075-
1076-
#ifndef NDEBUG
1077-
VerifyStates();
10781074
#endif
10791075

10801076
// Insert Phis for all conflicts

0 commit comments

Comments
 (0)