[cfe-commits] r68424 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Apr 4 03:27:51 PDT 2009
Author: asl
Date: Sat Apr 4 05:27:50 2009
New Revision: 68424
URL: http://llvm.org/viewvc/llvm-project?rev=68424&view=rev
Log:
Extend possible handled regparm(N) value
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=68424&r1=68423&r2=68424&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Sat Apr 4 05:27:50 2009
@@ -1471,7 +1471,7 @@
return;
}
- if (NumParams.getLimitedValue(4) > S.Context.Target.getRegParmMax()) {
+ if (NumParams.getLimitedValue(255) > S.Context.Target.getRegParmMax()) {
S.Diag(Attr.getLoc(), diag::err_attribute_regparm_invalid_number)
<< S.Context.Target.getRegParmMax() << NumParamsExpr->getSourceRange();
return;
More information about the cfe-commits
mailing list