diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-05 18:24:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-05 18:24:03 +0000 |
commit | 834eb40f442ae0862b8e283f8f4e0203bd436c56 (patch) | |
tree | b7920f6fc3ec5ee013276f273b9f0c7bc03cc254 /lib/VMCore/Verifier.cpp | |
parent | 9a6cb1598060e7c33115ffad55e176a737bac99a (diff) | |
download | external_llvm-834eb40f442ae0862b8e283f8f4e0203bd436c56.zip external_llvm-834eb40f442ae0862b8e283f8f4e0203bd436c56.tar.gz external_llvm-834eb40f442ae0862b8e283f8f4e0203bd436c56.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 820bf33..affbc9a 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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) { |