1
0
Fork 0
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:
Brian Fiete 2021-11-02 09:57:03 -07:00
parent b81c7ef4bf
commit da428d2c50

View file

@ -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);
}