mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed another bug related to mDeclModule change
This commit is contained in:
parent
43b78a6c25
commit
81da37bb94
1 changed files with 7 additions and 1 deletions
|
@ -10585,7 +10585,13 @@ BfModuleMethodInstance BfModule::ReferenceExternalMethodInstance(BfMethodInstanc
|
||||||
BfModule* BfModule::GetOrCreateMethodModule(BfMethodInstance* methodInstance)
|
BfModule* BfModule::GetOrCreateMethodModule(BfMethodInstance* methodInstance)
|
||||||
{
|
{
|
||||||
BfTypeInstance* typeInst = methodInstance->mMethodInstanceGroup->mOwner;
|
BfTypeInstance* typeInst = methodInstance->mMethodInstanceGroup->mOwner;
|
||||||
|
|
||||||
|
if (mBfIRBuilder == NULL)
|
||||||
|
{
|
||||||
|
// To allow for custom attribute data
|
||||||
|
PrepareForIRWriting(typeInst);
|
||||||
|
}
|
||||||
|
|
||||||
BfModule* declareModule = this;
|
BfModule* declareModule = this;
|
||||||
// Get to the optionless branch head -- but this could still be a specialized method module, not the true root
|
// 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))
|
while ((declareModule->mParentModule != NULL) && (!declareModule->mIsSpecializedMethodModuleRoot))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue