1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

We want a string representation of the attribute, not the kind as a string.

llvm-svn: 184239
This commit is contained in:
Bill Wendling 2013-06-18 21:27:00 +00:00
parent 7700179b08
commit 025f285316

View File

@ -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;
}