forked from OSchip/llvm-project
parent
0cb6acb7ce
commit
f3216e9536
|
@ -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