projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e06dc21
)
Extend possible handled regparm(N) value
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sat, 4 Apr 2009 10:27:50 +0000
(10:27 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Sat, 4 Apr 2009 10:27:50 +0000
(10:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68424
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
patch
|
blob
|
history
diff --git
a/lib/Sema/SemaDeclAttr.cpp
b/lib/Sema/SemaDeclAttr.cpp
index cecae0e27b0f677bc94ee8db54a59c43fad9e7eb..7f5909b037f5db48accdae8ac6f4ec0afb4ed1e0 100644
(file)
--- a/
lib/Sema/SemaDeclAttr.cpp
+++ b/
lib/Sema/SemaDeclAttr.cpp
@@
-1471,7
+1471,7
@@
static void HandleRegparmAttr(Decl *d, const AttributeList &Attr, Sema &S) {
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;