Use method to query for attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-10-05 06:18:50 +00:00
parent 7a922307db
commit 1fddc9d916

View 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;