diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-27 23:54:32 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-27 23:54:32 -0700 |
commit | b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff (patch) | |
tree | f2657026bbcb17999b5646b0fa5f585602982363 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | d0166c617d77b9dd57e605cfb016438f202e9c9c (diff) | |
download | llvm-b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff.zip llvm-b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff.tar.gz llvm-b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff.tar.bz2 |
[Transform] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index abe928f..3497654 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -1758,8 +1758,8 @@ void CHR::cloneScopeBlocks(CHRScope *Scope, NewBlocks[0]->getIterator(), F.end()); // Update the cloned blocks/instructions to refer to themselves. - for (unsigned i = 0, e = NewBlocks.size(); i != e; ++i) - for (Instruction &I : *NewBlocks[i]) + for (BasicBlock *NewBB : NewBlocks) + for (Instruction &I : *NewBB) RemapInstruction(&I, VMap, RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); |