OSDN Git Service

fix an incorrect and extremely confusing error message
authorChris Lattner <sabre@nondot.org>
Sun, 5 Oct 2008 18:24:03 +0000 (18:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Oct 2008 18:24:03 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57123 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 820bf33..affbc9a 100644 (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) {