summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2019-12-22 19:20:17 +0100
committerMark de Wever <koraq@xs4all.nl>2019-12-22 19:20:17 +0100
commit098d3347e74ac89ea87744bf40ca98ade5e8468e (patch)
tree95b0d3ab6a59b13650331ad6611b042af9c7bd0e /llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
parentb6d9e976629ac655e0ed2655289e90357107793f (diff)
downloadbcm5719-llvm-098d3347e74ac89ea87744bf40ca98ade5e8468e.tar.gz
bcm5719-llvm-098d3347e74ac89ea87744bf40ca98ade5e8468e.zip
[Transforms] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71810
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp b/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
index 13f33277ff1..7a168ff6f32 100644
--- a/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
@@ -584,7 +584,7 @@ static void cloneLoopBlocks(
// LastValueMap is updated with the values for the current loop
// which are used the next time this function is called.
- for (const auto &KV : VMap)
+ for (auto KV : VMap)
LVMap[KV.first] = KV.second;
}
OpenPOWER on IntegriCloud