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:
Chris Lattner 2008-10-05 18:24:03 +00:00
parent 9a6cb15980
commit 834eb40f44

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