forked from OSchip/llvm-project
Whoops. This really shouldn't compile in clang, either.
llvm-svn: 116470
This commit is contained in:
parent
c153891662
commit
e1139e4a88
|
|
@ -1902,14 +1902,14 @@ bool ProcessFnAttr(Sema &S, QualType &Type, const AttributeList &Attr) {
|
|||
S.Diag(Attr.getLoc(), diag::err_attribute_regparm_wrong_platform)
|
||||
<< NumParamsExpr->getSourceRange();
|
||||
Attr.setInvalid();
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (NumParams.getLimitedValue(255) > S.Context.Target.getRegParmMax()) {
|
||||
S.Diag(Attr.getLoc(), diag::err_attribute_regparm_invalid_number)
|
||||
<< S.Context.Target.getRegParmMax() << NumParamsExpr->getSourceRange();
|
||||
Attr.setInvalid();
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
Type = S.Context.getRegParmType(Type, NumParams.getZExtValue());
|
||||
|
|
|
|||
Loading…
Reference in New Issue