mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed adding emitted interfaces when no emitted code is added
This commit is contained in:
parent
7115cb8e82
commit
af4a402a53
2 changed files with 7 additions and 2 deletions
|
@ -2201,7 +2201,7 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance*
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!ceEmitContext->mEmitData.IsEmpty())
|
||||
else if (ceEmitContext->HasEmissions())
|
||||
{
|
||||
if (typeInstance->mCeTypeInfo == NULL)
|
||||
typeInstance->mCeTypeInfo = new BfCeTypeInfo();
|
||||
|
@ -2213,7 +2213,7 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance*
|
|||
typeInstance->mCeTypeInfo->mNext->mTypeIFaceMap[typeId] = entry;
|
||||
}
|
||||
|
||||
if (!ceEmitContext->mEmitData.IsEmpty())
|
||||
if (ceEmitContext->HasEmissions())
|
||||
{
|
||||
String ctxStr = "comptime ApplyToType of ";
|
||||
ctxStr += TypeToString(attrType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue