mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user