the big refactoring bits of PR3782.
This introduces FunctionType::ExtInfo to hold the calling convention and the noreturn attribute. The next patch will extend it to include the regparm attribute and fix the bug. llvm-svn: 99920
This commit is contained in:
@@ -134,8 +134,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
|
||||
NewProto->isVariadic(),
|
||||
NewProto->getTypeQuals(),
|
||||
true, false, 0, 0,
|
||||
NewProto->getNoReturnAttr(),
|
||||
NewProto->getCallConv());
|
||||
NewProto->getExtInfo());
|
||||
New->setType(NewType);
|
||||
return false;
|
||||
}
|
||||
@@ -157,8 +156,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
|
||||
OldProto->hasAnyExceptionSpec(),
|
||||
OldProto->getNumExceptions(),
|
||||
OldProto->exception_begin(),
|
||||
NewProto->getNoReturnAttr(),
|
||||
NewProto->getCallConv());
|
||||
NewProto->getExtInfo());
|
||||
New->setType(NewType);
|
||||
|
||||
// If exceptions are disabled, suppress the warning about missing
|
||||
|
||||
Reference in New Issue
Block a user