Fix a latent bug found by Ahmed Charles, where we were calling

ASTContext::getFunctionType with the wrong set of arguments.

llvm-svn: 95986
This commit is contained in:
Douglas Gregor 2010-02-12 17:17:28 +00:00
parent 8e661e15f2
commit 8870a49310
1 changed files with 1 additions and 1 deletions

View File

@ -4367,7 +4367,7 @@ QualType ASTContext::mergeFunctionTypes(QualType lhs, QualType rhs) {
if (allRTypes) return rhs;
return getFunctionType(retType, types.begin(), types.size(),
lproto->isVariadic(), lproto->getTypeQuals(),
NoReturn, lcc);
false, false, 0, 0, NoReturn, lcc);
}
if (lproto) allRTypes = false;