mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-30 03:28:50 +00:00
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
This commit is contained in:
@@ -695,11 +695,11 @@ void Verifier::VerifyAttributeTypes(AttributeSet Attrs, unsigned Idx,
|
|||||||
I->getKindAsEnum() == Attribute::NoBuiltin ||
|
I->getKindAsEnum() == Attribute::NoBuiltin ||
|
||||||
I->getKindAsEnum() == Attribute::Cold) {
|
I->getKindAsEnum() == Attribute::Cold) {
|
||||||
if (!isFunction)
|
if (!isFunction)
|
||||||
CheckFailed("Attribute '" + I->getKindAsString() +
|
CheckFailed("Attribute '" + I->getAsString() +
|
||||||
"' only applies to functions!", V);
|
"' only applies to functions!", V);
|
||||||
return;
|
return;
|
||||||
} else if (isFunction) {
|
} else if (isFunction) {
|
||||||
CheckFailed("Attribute '" + I->getKindAsString() +
|
CheckFailed("Attribute '" + I->getAsString() +
|
||||||
"' does not apply to functions!", V);
|
"' does not apply to functions!", V);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user