diff options
author | Kazu Hirata <kazu@google.com> | 2022-09-03 23:27:27 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-09-03 23:27:27 -0700 |
commit | b7a7aeee90cffefd0f73b8d9f44ab4d1d5123d05 (patch) | |
tree | ab50ad34ab30dd24a5aa33bf3793da0b474bb8e4 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 7d8c2d17eb3c1631ce33f1497a6d9ca76bfbfd44 (diff) | |
download | llvm-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/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index ff6ca09..4061fa8 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -521,7 +521,7 @@ static void initializeForBlockHeader(CodeGenModule &CGM, CGBlockInfo &info, unsigned BlockAlign = GenPtrAlign.getQuantity(); if (auto *Helper = CGM.getTargetCodeGenInfo().getTargetOpenCLBlockHelper()) { - for (auto I : Helper->getCustomFieldTypes()) /* custom fields */ { + for (auto *I : Helper->getCustomFieldTypes()) /* custom fields */ { // TargetOpenCLBlockHelp needs to make sure the struct is packed. // If necessary, add padding fields to the custom fields. unsigned Align = CGM.getDataLayout().getABITypeAlignment(I); @@ -1356,7 +1356,7 @@ static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, fields.add(buildBlockDescriptor(CGM, blockInfo)); } else if (auto *Helper = CGM.getTargetCodeGenInfo().getTargetOpenCLBlockHelper()) { - for (auto I : Helper->getCustomFieldValues(CGM, blockInfo)) { + for (auto *I : Helper->getCustomFieldValues(CGM, blockInfo)) { fields.add(I); } } |