mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Record mUnreifiedStringPoolRefs in correct owner module
This commit is contained in:
parent
b81c7ef4bf
commit
da428d2c50
1 changed files with 4 additions and 1 deletions
|
@ -1734,7 +1734,10 @@ BfIRValue BfModule::GetStringObjectValue(const StringImpl& str, bool define, boo
|
|||
|
||||
if ((mBfIRBuilder->mIgnoreWrites) && (!force))
|
||||
{
|
||||
mUnreifiedStringPoolRefs.Add(strId);
|
||||
auto refModule = this;
|
||||
if ((this == mContext->mUnreifiedModule) && (mCurTypeInstance != NULL))
|
||||
refModule = mCurTypeInstance->mModule;
|
||||
refModule->mUnreifiedStringPoolRefs.Add(strId);
|
||||
return mBfIRBuilder->CreateConst(BfTypeCode_StringId, strId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue