projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b2ce3
)
Use the AttributeSet query instead of the Attribute query.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 25 Jan 2013 08:08:54 +0000
(08:08 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 25 Jan 2013 08:08:54 +0000
(08:08 +0000)
llvm-svn: 173434
llvm/lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Verifier.cpp
b/llvm/lib/IR/Verifier.cpp
index
ee20f53
..
b263bbe
100644
(file)
--- a/
llvm/lib/IR/Verifier.cpp
+++ b/
llvm/lib/IR/Verifier.cpp
@@
-730,12
+730,12
@@
void Verifier::VerifyFunctionAttrs(FunctionType *FT,
VerifyParameterAttrs(Attrs, Attr.Index, Ty, Attr.Index == 0, V);
- if (Attr
.Attrs.hasAttribute(
Attribute::Nest)) {
+ if (Attr
s.hasAttribute(Attr.Index,
Attribute::Nest)) {
Assert1(!SawNest, "More than one parameter has attribute nest!", V);
SawNest = true;
}
- if (Attr
.Attrs.hasAttribute(
Attribute::StructRet))
+ if (Attr
s.hasAttribute(Attr.Index,
Attribute::StructRet))
Assert1(Attr.Index == 1, "Attribute sret is not on first parameter!", V);
}