forked from OSchip/llvm-project
We want a string representation of the attribute, not the kind as a string.
llvm-svn: 184239
This commit is contained in:
parent
dd7106375c
commit
1470e2077a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue