aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/PredicateInfo.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/PredicateInfo.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/PredicateInfo.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/PredicateInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
index 53334bc..de11b42 100644
--- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp
+++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
@@ -626,7 +626,7 @@ void PredicateInfoBuilder::renameUses(SmallVectorImpl<Value *> &OpsToRename) {
// Insert the possible copies into the def/use list.
// They will become real copies if we find a real use for them, and never
// created otherwise.
- for (auto &PossibleCopy : ValueInfo.Infos) {
+ for (const auto &PossibleCopy : ValueInfo.Infos) {
ValueDFS VD;
// Determine where we are going to place the copy by the copy type.
// The predicate info for branches always come first, they will get
@@ -772,7 +772,7 @@ PredicateInfo::~PredicateInfo() {
// Collect function pointers in set first, as SmallSet uses a SmallVector
// internally and we have to remove the asserting value handles first.
SmallPtrSet<Function *, 20> FunctionPtrs;
- for (auto &F : CreatedDeclarations)
+ for (const auto &F : CreatedDeclarations)
FunctionPtrs.insert(&*F);
CreatedDeclarations.clear();