forked from OSchip/llvm-project
fix an incorrect and extremely confusing error message
llvm-svn: 57123
This commit is contained in:
parent
4744ed5f94
commit
851e72cd22
|
@ -418,7 +418,7 @@ void Verifier::VerifyAttrs(Attributes Attrs, const Type *Ty,
|
|||
}
|
||||
Attributes FnCheckAttr = Attrs & Attribute::FunctionOnly;
|
||||
Assert1(!FnCheckAttr, "Attribute " + Attribute::getAsString(FnCheckAttr) +
|
||||
" only applies to return values!", V);
|
||||
" only applies to functions!", V);
|
||||
|
||||
for (unsigned i = 0;
|
||||
i < array_lengthof(Attribute::MutuallyIncompatible); ++i) {
|
||||
|
|
Loading…
Reference in New Issue