[llvm] r184239 - We want a string representation of the attribute, not the kind as a string.

Bill Wendling isanbard at gmail.com
Tue Jun 18 14:27:00 PDT 2013


Author: void
Date: Tue Jun 18 16:27:00 2013
New Revision: 184239

URL: http://llvm.org/viewvc/llvm-project?rev=184239&view=rev
Log:
We want a string representation of the attribute, not the kind as a string.

Modified:
    llvm/trunk/lib/IR/Verifier.cpp

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=184239&r1=184238&r2=184239&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Jun 18 16:27:00 2013
@@ -695,11 +695,11 @@ void Verifier::VerifyAttributeTypes(Attr
         I->getKindAsEnum() == Attribute::NoBuiltin ||
         I->getKindAsEnum() == Attribute::Cold) {
       if (!isFunction)
-          CheckFailed("Attribute '" + I->getKindAsString() +
+          CheckFailed("Attribute '" + I->getAsString() +
                       "' only applies to functions!", V);
           return;
     } else if (isFunction) {
-        CheckFailed("Attribute '" + I->getKindAsString() +
+        CheckFailed("Attribute '" + I->getAsString() +
                     "' does not apply to functions!", V);
         return;
     }





More information about the llvm-commits mailing list