diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-05 06:18:50 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-05 06:18:50 +0000 |
commit | 1fddc9d916c752564cea1af78fc01f78ad709d3a (patch) | |
tree | ccac6f324a84b15f6e4ea2cc96883b5abef97be8 | |
parent | 7a922307dbe3dfb475a6641d414c65d45c100220 (diff) |
Use method to query for attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165304 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 292456ab63..650125a08c 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; |