From: Douglas Gregor Date: Fri, 12 Feb 2010 17:17:28 +0000 (+0000) Subject: Fix a latent bug found by Ahmed Charles, where we were calling X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bf40248e3f0d743df77b5b44dbff72c235cbf20;p=clang Fix a latent bug found by Ahmed Charles, where we were calling ASTContext::getFunctionType with the wrong set of arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95986 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 6ac989041a..1112aa97b8 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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;