1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

PopulateType issue fixed

This commit is contained in:
Brian Fiete 2020-05-11 10:14:39 -07:00
parent b0fbc87d31
commit 2320e2eb8c

View file

@ -10342,6 +10342,7 @@ BfTypedValue BfModule::LoadValue(BfTypedValue typedValue, BfAstNode* refNode, bo
if (!typedValue.IsAddr())
return typedValue;
PopulateType(typedValue.mType);
if ((typedValue.mType->IsValuelessType()) || (typedValue.mType->IsVar()))
return BfTypedValue(mBfIRBuilder->GetFakeVal(), typedValue.mType, false);