mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
7a922307db
commit
1fddc9d916
@ -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