forked from OSchip/llvm-project
CodeGen: further simplify assertion
Use more of algorithm to simplify the assertion. Pointed out by David Blakie! llvm-svn: 222721
This commit is contained in:
parent
27ce577356
commit
32d1a96d69
|
@ -446,10 +446,8 @@ CodeGenTypes::arrangeLLVMFunctionInfo(CanQualType resultType,
|
|||
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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue