summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 08:08:54 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 08:08:54 +0000
commita3bb665c6505ff78c29a37ca95dad1d297928791 (patch)
tree2835f8b6c1187bc684b830ca08bbfaf346a70c9a /lib
parentc855423ff2a18e2168324ac5902cfe862cd4b54f (diff)
downloadllvm-a3bb665c6505ff78c29a37ca95dad1d297928791.tar.gz
llvm-a3bb665c6505ff78c29a37ca95dad1d297928791.tar.bz2
llvm-a3bb665c6505ff78c29a37ca95dad1d297928791.tar.xz
Use the AttributeSet query instead of the Attribute query.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/Verifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp
index ee20f53b94..b263bbef3a 100644
--- a/lib/IR/Verifier.cpp
+++ b/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 (Attrs.hasAttribute(Attr.Index, Attribute::Nest)) {
Assert1(!SawNest, "More than one parameter has attribute nest!", V);
SawNest = true;
}
- if (Attr.Attrs.hasAttribute(Attribute::StructRet))
+ if (Attrs.hasAttribute(Attr.Index, Attribute::StructRet))
Assert1(Attr.Index == 1, "Attribute sret is not on first parameter!", V);
}