Skip to content

Commit 3bb61a8

Browse files
committed
use keys
1 parent 1010fc0 commit 3bb61a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ struct TransformDFA {
913913
// SLPVectorizer.
914914
// TODO: Thread the switch partially before reaching the threshold.
915915
uint64_t NumOrigInst = 0;
916-
for (auto &[BB, _] : DuplicateMap)
916+
for (auto *BB : DuplicateMap.keys())
917917
NumOrigInst += range_size(*BB);
918918
if (double(NumClonedInst) / double(NumOrigInst) > MaxClonedRate) {
919919
LLVM_DEBUG(dbgs() << "DFA Jump Threading: Not jump threading, too much "

0 commit comments

Comments
 (0)