mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed type recursion issue checking attributes in DoCEEmit
This commit is contained in:
parent
ca81fd14c2
commit
0e86b5c49d
1 changed files with 8 additions and 0 deletions
|
@ -2820,6 +2820,14 @@ void BfModule::DoCEEmit(BfTypeInstance* typeInstance, bool& hadNewMembers, bool
|
|||
{
|
||||
BfLogSysM("BfModule::DoCEEmit %p\n", typeInstance);
|
||||
|
||||
if (((typeInstance->IsInstanceOf(mCompiler->mValueTypeTypeDef))) ||
|
||||
((typeInstance->IsInstanceOf(mCompiler->mEnumTypeDef))) ||
|
||||
((typeInstance->IsInstanceOf(mCompiler->mAttributeTypeDef))))
|
||||
{
|
||||
// These are not allowed to emit
|
||||
return;
|
||||
}
|
||||
|
||||
CeEmitContext ceEmitContext;
|
||||
ceEmitContext.mType = typeInstance;
|
||||
ExecuteCEOnCompile(&ceEmitContext, typeInstance, BfCEOnCompileKind_TypeInit, underlyingTypeDeferred);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue