mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Use method to query for attributes.
llvm-svn: 165304
This commit is contained in:
parent
ba721cd4c0
commit
567c9dbb89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user