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 | 1470e2077a4818267d78edb27a33e0e82d85009a (patch) | |
tree | 7aa6f9dc57d7b7918b395108340e1814a015747e | |
parent | dd7106375c2c7de682bf2997d2ef7bb55113219f (diff) | |
download | bcm5719-llvm-1470e2077a4818267d78edb27a33e0e82d85009a.tar.gz bcm5719-llvm-1470e2077a4818267d78edb27a33e0e82d85009a.zip |
We want a string representation of the attribute, not the kind as a string.
llvm-svn: 184239
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |