aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/DomTreeUpdater.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-07-10 16:39:15 +0100
committerFlorian Hahn <flo@fhahn.com>2020-07-10 16:39:15 +0100
commitec00aa99dd4cd46c328219cffefcfdf8a8bd53a0 (patch)
treed640a04c057589f6bc35b11e6adc7a800581c1e3 /llvm/lib/Analysis/DomTreeUpdater.cpp
parenteb5c7f6b8fe0e66bbbc2aa23cc899fa11b750030 (diff)
downloadllvm-ec00aa99dd4cd46c328219cffefcfdf8a8bd53a0.zip
llvm-ec00aa99dd4cd46c328219cffefcfdf8a8bd53a0.tar.gz
llvm-ec00aa99dd4cd46c328219cffefcfdf8a8bd53a0.tar.bz2
[DomTreeUpdater] Use const auto * when iterating over pointers (NFC).
This silences the warning below: llvm-project/llvm/lib/Analysis/DomTreeUpdater.cpp:510:20: warning: loop variable 'BB' is always a copy because the range of type 'const SmallPtrSet<llvm::BasicBlock *, 8>' does not return a reference [-Wrange-loop-analysis] for (const auto &BB : DeletedBBs) { ^ llvm-project/llvm/lib/Analysis/DomTreeUpdater.cpp:510:8: note: use non-reference type 'llvm::BasicBlock *' for (const auto &BB : DeletedBBs) { ^~~~~~~~~~~~~~~~ 1 warning generated.
Diffstat (limited to 'llvm/lib/Analysis/DomTreeUpdater.cpp')
-rw-r--r--llvm/lib/Analysis/DomTreeUpdater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DomTreeUpdater.cpp b/llvm/lib/Analysis/DomTreeUpdater.cpp
index 26e637b..9594da0 100644
--- a/llvm/lib/Analysis/DomTreeUpdater.cpp
+++ b/llvm/lib/Analysis/DomTreeUpdater.cpp
@@ -507,7 +507,7 @@ LLVM_DUMP_METHOD void DomTreeUpdater::dump() const {
OS << "Pending DeletedBBs:\n";
Index = 0;
- for (const auto &BB : DeletedBBs) {
+ for (const auto *BB : DeletedBBs) {
OS << " " << Index << " : ";
++Index;
if (BB->hasName())