Use method to query for attributes.
authorBill Wendling <isanbard@gmail.com>
Fri, 5 Oct 2012 06:18:50 +0000 (06:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 5 Oct 2012 06:18:50 +0000 (06:18 +0000)
llvm-svn: 165304

llvm/lib/VMCore/Verifier.cpp

index 292456a..650125a 100644 (file)
@@ -526,7 +526,7 @@ void Verifier::visitMDNode(MDNode &MD, Function *F) {
 // value of the specified type.  The value V is printed in error messages.
 void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty,
                                     bool isReturnValue, const Value *V) {
-  if (Attrs == Attribute::None)
+  if (!Attrs.hasAttributes())
     return;
 
   Attributes FnCheckAttr = Attrs & Attribute::FunctionOnly;