Use method to query for attributes.

llvm-svn: 165304
This commit is contained in:
Bill Wendling 2012-10-05 06:18:50 +00:00
parent ba721cd4c0
commit 567c9dbb89

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. // value of the specified type. The value V is printed in error messages.
void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty, void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty,
bool isReturnValue, const Value *V) { bool isReturnValue, const Value *V) {
if (Attrs == Attribute::None) if (!Attrs.hasAttributes())
return; return;
Attributes FnCheckAttr = Attrs & Attribute::FunctionOnly; Attributes FnCheckAttr = Attrs & Attribute::FunctionOnly;