1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed another bug related to mDeclModule change

This commit is contained in:
Brian Fiete 2019-09-07 15:34:05 -07:00
parent 43b78a6c25
commit 81da37bb94

View file

@ -10585,7 +10585,13 @@ BfModuleMethodInstance BfModule::ReferenceExternalMethodInstance(BfMethodInstanc
BfModule* BfModule::GetOrCreateMethodModule(BfMethodInstance* methodInstance)
{
BfTypeInstance* typeInst = methodInstance->mMethodInstanceGroup->mOwner;
if (mBfIRBuilder == NULL)
{
// To allow for custom attribute data
PrepareForIRWriting(typeInst);
}
BfModule* declareModule = this;
// Get to the optionless branch head -- but this could still be a specialized method module, not the true root
while ((declareModule->mParentModule != NULL) && (!declareModule->mIsSpecializedMethodModuleRoot))