]> granicus.if.org Git - clang/commitdiff
Fix a latent bug found by Ahmed Charles, where we were calling
authorDouglas Gregor <dgregor@apple.com>
Fri, 12 Feb 2010 17:17:28 +0000 (17:17 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 12 Feb 2010 17:17:28 +0000 (17:17 +0000)
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

lib/AST/ASTContext.cpp

index 6ac989041ab7ff5221750a079e87ffbebad1d60b..1112aa97b8c08a920697419afa93c4b2b3fbe7de 100644 (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;