mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Convert typeIncompatible to return an AttributeSet.
There are still places which treat the Attribute object as a collection of attributes. I'm systematically removing them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -693,9 +693,9 @@ void Verifier::VerifyParameterAttrs(AttributeSet Attrs, uint64_t Idx, Type *Ty,
|
||||
"'noinline and alwaysinline' are incompatible!", V);
|
||||
|
||||
Assert1(!AttrBuilder(Attrs, Idx).
|
||||
hasAttributes(AttributeFuncs::typeIncompatible(Ty)),
|
||||
hasAttributes(AttributeFuncs::typeIncompatible(Ty, Idx), Idx),
|
||||
"Wrong types for attribute: " +
|
||||
AttributeFuncs::typeIncompatible(Ty).getAsString(), V);
|
||||
AttributeFuncs::typeIncompatible(Ty, Idx).getAsString(Idx), V);
|
||||
|
||||
if (PointerType *PTy = dyn_cast<PointerType>(Ty))
|
||||
Assert1(!Attrs.hasAttribute(Idx, Attribute::ByVal) ||
|
||||
|
Reference in New Issue
Block a user