diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-18 21:27:00 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-18 21:27:00 +0000 |
commit | f2db8dfa84ead80df2e0ca8a56e9f0ae18d67a5e (patch) | |
tree | 5d5e2483af6a3526e7fe7914ed5f6e131346fe0f /lib | |
parent | c4cc006a09a21e2bff6a45af0fee9f3cf318870c (diff) | |
download | external_llvm-f2db8dfa84ead80df2e0ca8a56e9f0ae18d67a5e.zip external_llvm-f2db8dfa84ead80df2e0ca8a56e9f0ae18d67a5e.tar.gz external_llvm-f2db8dfa84ead80df2e0ca8a56e9f0ae18d67a5e.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index f8774bc..df28cee 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; } |