mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Improved emitted static field lookup
This commit is contained in:
parent
a69e1cfe6e
commit
1aca5f6771
3 changed files with 8 additions and 2 deletions
|
@ -2714,7 +2714,7 @@ void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
|
|||
{
|
||||
auto populateModule = mModule->mContext->mUnreifiedModule;
|
||||
auto typeInstance = type->ToTypeInstance();
|
||||
if (typeInstance != NULL)
|
||||
if ((typeInstance != NULL) && (typeInstance->mModule != NULL))
|
||||
populateModule = typeInstance->mModule;
|
||||
|
||||
bool wantDIData = DbgHasInfo() && (!type->IsUnspecializedType());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue