From 567c9dbb896503c91ad3d5fc894eee55a6cefa2d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 5 Oct 2012 06:18:50 +0000 Subject: [PATCH] Use method to query for attributes. llvm-svn: 165304 --- lib/VMCore/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 292456ab63c..650125a08c3 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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;