Use the AttributeSet query instead of the Attribute query.

llvm-svn: 173434
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index ee20f53..b263bbe 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -730,12 +730,12 @@
 
     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);
   }