From f2db8dfa84ead80df2e0ca8a56e9f0ae18d67a5e 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184239 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Verifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index f8774bc3d9..df28cee03e 100644 --- a/lib/IR/Verifier.cpp +++ b/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