Use more of algorithm to simplify the assertion. Pointed out by David Blakie!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222721
91177308-0d34-0410-b5e6-
96231b3b80d8
ArrayRef<CanQualType> argTypes,
FunctionType::ExtInfo info,
RequiredArgs required) {
-#ifndef NDEBUG
- for (const auto &AT : argTypes)
- assert(AT.isCanonicalAsParam());
-#endif
+ assert(std::all_of(argTypes.begin(), argTypes.end(),
+ std::mem_fun_ref(&CanQualType::isCanonicalAsParam)));
unsigned CC = ClangCallConvToLLVMCallConv(info.getCC());