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

Fixed issues with failed const type expressions

This commit is contained in:
Brian Fiete 2020-09-27 23:25:42 -07:00
parent ee4ae8f9ed
commit ae06346357
2 changed files with 5 additions and 3 deletions

View file

@ -9303,6 +9303,9 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
}
constExprType->mType = GetPrimitiveType(result.mTypeCode);
BF_ASSERT(constExprType->mType != NULL);
if (constExprType->mType == NULL)
constExprType->mType = GetPrimitiveType(BfTypeCode_IntPtr);
constExprType->mValue = result;
resolvedEntry->mValue = constExprType;