aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-07 23:55:27 -0700
committerKazu Hirata <kazu@google.com>2022-08-07 23:55:27 -0700
commite20d210eef92f3952de0e89ef2f01a146480a13b (patch)
treedd2a1a4b21f9e67a73b66bf7080ffec123823982 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent1dd8a318544bdf4d06b337340d678df06e4f2f0a (diff)
downloadllvm-e20d210eef92f3952de0e89ef2f01a146480a13b.zip
llvm-e20d210eef92f3952de0e89ef2f01a146480a13b.tar.gz
llvm-e20d210eef92f3952de0e89ef2f01a146480a13b.tar.bz2
[llvm] Qualify auto (NFC)
Identified with readability-qualified-auto.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 03272e5f..dca62df 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1676,7 +1676,7 @@ Value *llvm::addDiffRuntimeChecks(
// Our instructions might fold to a constant.
Value *MemoryRuntimeCheck = nullptr;
- for (auto &C : Checks) {
+ for (const auto &C : Checks) {
Type *Ty = C.SinkStart->getType();
// Compute VF * IC * AccessSize.
auto *VFTimesUFTimesSize =