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 (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;
|
||||||
|
|
|
@ -187,3 +187,6 @@ int test27() {
|
||||||
}
|
}
|
||||||
done: ;
|
done: ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test28() __attribute__((noreturn));
|
||||||
|
void test28(x) { while (1) { } }
|
||||||
|
|
Loading…
Reference in New Issue