From 834eb40f442ae0862b8e283f8f4e0203bd436c56 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Oct 2008 18:24:03 +0000 Subject: [PATCH] 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 --- lib/VMCore/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 820bf33bc93..affbc9a6ba4 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) {