1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

PopulateType issue

This commit is contained in:
Brian Fiete 2020-08-09 07:17:24 -07:00
parent 36b56563a2
commit b1e6ce17a6

View file

@ -3975,6 +3975,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
}
else if ((target.mType->IsStruct()) && (!target.IsAddr()))
{
mModule->mBfIRBuilder->PopulateType(targetValue.mType);
retVal = BfTypedValue(mModule->mBfIRBuilder->CreateExtractValue(targetValue.mValue, fieldInstance->mDataIdx/*, field->mName*/),
resolvedFieldType);
}