Whoops. This really shouldn't compile in clang, either.

llvm-svn: 116470
This commit is contained in:
John McCall 2010-10-14 02:06:32 +00:00
parent c153891662
commit e1139e4a88
1 changed files with 2 additions and 2 deletions

View File

@ -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());