Fix PR4624.

llvm-svn: 77176
This commit is contained in:
Mike Stump 2009-07-27 00:44:23 +00:00
parent 186332f898
commit 21e0f895a1
2 changed files with 5 additions and 2 deletions

View File

@ -3442,8 +3442,8 @@ QualType ASTContext::mergeFunctionTypes(QualType lhs, QualType rhs) {
if (allLTypes) return lhs; if (allLTypes) return lhs;
if (allRTypes) return rhs; if (allRTypes) return rhs;
return getFunctionType(retType, proto->arg_type_begin(), return getFunctionType(retType, proto->arg_type_begin(),
proto->getNumArgs(), lproto->isVariadic(), proto->getNumArgs(), proto->isVariadic(),
lproto->getTypeQuals(), NoReturn); proto->getTypeQuals(), NoReturn);
} }
if (allLTypes) return lhs; if (allLTypes) return lhs;

View File

@ -187,3 +187,6 @@ int test27() {
} }
done: ; done: ;
} }
void test28() __attribute__((noreturn));
void test28(x) { while (1) { } }