mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-09 20:46:07 +00: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.
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user