mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
fix an incorrect and extremely confusing error message
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a6cb15980
commit
834eb40f44
@ -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
Block a user