forked from OSchip/llvm-project
parent
186332f898
commit
21e0f895a1
|
@ -3442,8 +3442,8 @@ QualType ASTContext::mergeFunctionTypes(QualType lhs, QualType rhs) {
|
|||
if (allLTypes) return lhs;
|
||||
if (allRTypes) return rhs;
|
||||
return getFunctionType(retType, proto->arg_type_begin(),
|
||||
proto->getNumArgs(), lproto->isVariadic(),
|
||||
lproto->getTypeQuals(), NoReturn);
|
||||
proto->getNumArgs(), proto->isVariadic(),
|
||||
proto->getTypeQuals(), NoReturn);
|
||||
}
|
||||
|
||||
if (allLTypes) return lhs;
|
||||
|
|
|
@ -187,3 +187,6 @@ int test27() {
|
|||
}
|
||||
done: ;
|
||||
}
|
||||
|
||||
void test28() __attribute__((noreturn));
|
||||
void test28(x) { while (1) { } }
|
||||
|
|
Loading…
Reference in New Issue