diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-11-24 20:14:26 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-11-24 20:14:26 +0000 |
| commit | 76ecafd5238d84063053f9f754c2df18c57c4fe2 (patch) | |
| tree | 7c24096d12d41116d97b9cdcf557f518b6c84ce1 /clang | |
| parent | c98f8bc1db8a25b46c02a75a24ca3c1087c53637 (diff) | |
| download | bcm5719-llvm-76ecafd5238d84063053f9f754c2df18c57c4fe2.tar.gz bcm5719-llvm-76ecafd5238d84063053f9f754c2df18c57c4fe2.zip | |
CodeGen: use a range-based for loop
Convert a debug assertion into a range-based loop form. NFC.
llvm-svn: 222679
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 2ced44d965e..d012710bfe6 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -447,9 +447,8 @@ CodeGenTypes::arrangeLLVMFunctionInfo(CanQualType resultType, FunctionType::ExtInfo info, RequiredArgs required) { #ifndef NDEBUG - for (ArrayRef<CanQualType>::const_iterator - I = argTypes.begin(), E = argTypes.end(); I != E; ++I) - assert(I->isCanonicalAsParam()); + for (const auto &AT : argTypes) + assert(AT.isCanonicalAsParam()); #endif unsigned CC = ClangCallConvToLLVMCallConv(info.getCC()); |

