From 1470e2077a4818267d78edb27a33e0e82d85009a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 18 Jun 2013 21:27:00 +0000 Subject: We want a string representation of the attribute, not the kind as a string. llvm-svn: 184239 --- llvm/lib/IR/Verifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/IR/Verifier.cpp') diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index f8774bc3d9d..df28cee03e2 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -695,11 +695,11 @@ void Verifier::VerifyAttributeTypes(AttributeSet Attrs, unsigned Idx, 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; } -- cgit v1.2.3