aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-28 23:29:00 -0700
committerKazu Hirata <kazu@google.com>2022-08-28 23:29:00 -0700
commit0e9d37ff95b5c574a8fde65bb176691e1a17d70d (patch)
tree9c939966348be8c7d7fb21900dabaeb7826284a0 /llvm/lib/IR/Constants.cpp
parent8feb60756c7c5d083bf0396dcd6d34e84bca8bc1 (diff)
downloadllvm-0e9d37ff95b5c574a8fde65bb176691e1a17d70d.zip
llvm-0e9d37ff95b5c574a8fde65bb176691e1a17d70d.tar.gz
llvm-0e9d37ff95b5c574a8fde65bb176691e1a17d70d.tar.bz2
[llvm] Qualify auto in range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index f9800cc..b4a47db 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -2480,7 +2480,7 @@ Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C,
if (VectorType *VecTy = dyn_cast<VectorType>(C->getType()))
EltCount = VecTy->getElementCount();
else
- for (auto Idx : Idxs)
+ for (auto *Idx : Idxs)
if (VectorType *VecTy = dyn_cast<VectorType>(Idx->getType()))
EltCount = VecTy->getElementCount();