fix an incorrect and extremely confusing error message

llvm-svn: 57123
This commit is contained in:
Chris Lattner 2008-10-05 18:24:03 +00:00
parent 4744ed5f94
commit 851e72cd22
1 changed files with 1 additions and 1 deletions

View File

@ -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) {