diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-28 23:29:00 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-28 23:29:00 -0700 |
commit | 0e9d37ff95b5c574a8fde65bb176691e1a17d70d (patch) | |
tree | 9c939966348be8c7d7fb21900dabaeb7826284a0 /llvm/lib/IR/Function.cpp | |
parent | 8feb60756c7c5d083bf0396dcd6d34e84bca8bc1 (diff) | |
download | llvm-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/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index cbf8ecd..66f7f84 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -833,7 +833,7 @@ static std::string getMangledTypeStr(Type *Ty, bool &HasUnnamedType) { HasUnnamedType = true; } else { Result += "sl_"; - for (auto Elem : STyp->elements()) + for (auto *Elem : STyp->elements()) Result += getMangledTypeStr(Elem, HasUnnamedType); } // Ensure nested structs are distinguishable. @@ -1727,7 +1727,7 @@ Intrinsic::matchIntrinsicSignature(FunctionType *FTy, unsigned NumDeferredReturnChecks = DeferredChecks.size(); - for (auto Ty : FTy->params()) + for (auto *Ty : FTy->params()) if (matchIntrinsicType(Ty, Infos, ArgTys, DeferredChecks, false)) return MatchIntrinsicTypes_NoMatchArg; |