1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed alwaysInclude flags

This commit is contained in:
Brian Fiete 2021-01-31 05:26:00 -08:00
parent 1f419deae2
commit 0576e74d58

View file

@ -11289,6 +11289,8 @@ void BfModule::FinishAttributeState(BfAttributeState* attributeState)
void BfModule::ProcessTypeInstCustomAttributes(bool& isPacked, bool& isUnion, bool& isCRepr, bool& isOrdered, int& alignOverride, BfType*& underlyingArrayType, int& underlyingArraySize) void BfModule::ProcessTypeInstCustomAttributes(bool& isPacked, bool& isUnion, bool& isCRepr, bool& isOrdered, int& alignOverride, BfType*& underlyingArrayType, int& underlyingArraySize)
{ {
if (mCurTypeInstance->mTypeDef->mIsAlwaysInclude)
mCurTypeInstance->mAlwaysIncludeFlags = (BfAlwaysIncludeFlags)(mCurTypeInstance->mAlwaysIncludeFlags | BfAlwaysIncludeFlag_Type);
if (mCurTypeInstance->mCustomAttributes != NULL) if (mCurTypeInstance->mCustomAttributes != NULL)
{ {
for (auto& customAttribute : mCurTypeInstance->mCustomAttributes->mAttributes) for (auto& customAttribute : mCurTypeInstance->mCustomAttributes->mAttributes)