aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-03 23:27:27 -0700
committerKazu Hirata <kazu@google.com>2022-09-03 23:27:27 -0700
commitb7a7aeee90cffefd0f73b8d9f44ab4d1d5123d05 (patch)
treeab50ad34ab30dd24a5aa33bf3793da0b474bb8e4 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent7d8c2d17eb3c1631ce33f1497a6d9ca76bfbfd44 (diff)
downloadllvm-b7a7aeee90cffefd0f73b8d9f44ab4d1d5123d05.zip
llvm-b7a7aeee90cffefd0f73b8d9f44ab4d1d5123d05.tar.gz
llvm-b7a7aeee90cffefd0f73b8d9f44ab4d1d5123d05.tar.bz2
[clang] Qualify auto in range-based for loops (NFC)
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
index f6eaa35..677b66d 100644
--- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
+++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
@@ -107,7 +107,7 @@ class PCHContainerGenerator : public ASTConsumer {
return true;
SmallVector<QualType, 16> ArgTypes;
- for (auto i : D->parameters())
+ for (auto *i : D->parameters())
ArgTypes.push_back(i->getType());
QualType RetTy = D->getReturnType();
QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes,
@@ -126,7 +126,7 @@ class PCHContainerGenerator : public ASTConsumer {
ArgTypes.push_back(D->getSelfType(Ctx, D->getClassInterface(),
selfIsPseudoStrong, selfIsConsumed));
ArgTypes.push_back(Ctx.getObjCSelType());
- for (auto i : D->parameters())
+ for (auto *i : D->parameters())
ArgTypes.push_back(i->getType());
QualType RetTy = D->getReturnType();
QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes,