mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
Remove the now dead VarArgsIncompatible variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc4efcbdba
commit
15c3789763
@ -122,9 +122,6 @@ const AttrConst FunctionOnly = {NoReturn_i | NoUnwind_i | ReadNone_i |
|
|||||||
Naked_i | InlineHint_i | StackAlignment_i |
|
Naked_i | InlineHint_i | StackAlignment_i |
|
||||||
UWTable_i | NonLazyBind_i | ReturnsTwice_i | AddressSafety_i};
|
UWTable_i | NonLazyBind_i | ReturnsTwice_i | AddressSafety_i};
|
||||||
|
|
||||||
/// @brief Parameter attributes that do not apply to vararg call arguments.
|
|
||||||
const AttrConst VarArgsIncompatible = {StructRet_i};
|
|
||||||
|
|
||||||
/// @brief Attributes that are mutually incompatible.
|
/// @brief Attributes that are mutually incompatible.
|
||||||
const AttrConst MutuallyIncompatible[5] = {
|
const AttrConst MutuallyIncompatible[5] = {
|
||||||
{ByVal_i | Nest_i | StructRet_i},
|
{ByVal_i | Nest_i | StructRet_i},
|
||||||
@ -180,7 +177,6 @@ public:
|
|||||||
AddressSafety = 27 ///< Address safety checking is on.
|
AddressSafety = 27 ///< Address safety checking is on.
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
// Currently, we need less than 64 bits.
|
|
||||||
AttributesImpl Attrs;
|
AttributesImpl Attrs;
|
||||||
|
|
||||||
explicit Attributes(AttributesImpl *A);
|
explicit Attributes(AttributesImpl *A);
|
||||||
|
@ -1170,9 +1170,8 @@ void Verifier::VerifyCallSite(CallSite CS) {
|
|||||||
|
|
||||||
VerifyParameterAttrs(Attr, CS.getArgument(Idx-1)->getType(), false, I);
|
VerifyParameterAttrs(Attr, CS.getArgument(Idx-1)->getType(), false, I);
|
||||||
|
|
||||||
Attributes VArgI = Attr & Attribute::VarArgsIncompatible;
|
Assert1(!Attr.hasIncompatibleWithVarArgsAttrs(),
|
||||||
Assert1(!VArgI, "Attribute " + VArgI.getAsString() +
|
"Attribute 'sret' cannot be used for vararg call arguments!", I);
|
||||||
" cannot be used for vararg call arguments!", I);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify that there's no metadata unless it's a direct call to an intrinsic.
|
// Verify that there's no metadata unless it's a direct call to an intrinsic.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user