aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-05 18:24:03 +0000
committerChris Lattner <sabre@nondot.org>2008-10-05 18:24:03 +0000
commit834eb40f442ae0862b8e283f8f4e0203bd436c56 (patch)
treeb7920f6fc3ec5ee013276f273b9f0c7bc03cc254 /lib/VMCore/Verifier.cpp
parent9a6cb1598060e7c33115ffad55e176a737bac99a (diff)
downloadexternal_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.cpp2
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) {