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

Fixed range type population issue

This commit is contained in:
Brian Fiete 2022-09-08 17:07:48 -07:00
parent 17dc755ee7
commit f6c49b1084

View file

@ -23224,6 +23224,10 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
{
// Add as a `^1`
auto indexType = mModule->ResolveTypeDef(mModule->mCompiler->mIndexTypeDef)->ToTypeInstance();
mModule->PopulateType(indexType->mBaseType);
BF_ASSERT_REL(indexType->mBaseType->mBaseType != NULL);
rightTypedValueExpr.mRefNode = opToken;
auto valueTypeEmpty = mModule->mBfIRBuilder->CreateConstAgg(mModule->mBfIRBuilder->MapType(indexType->mBaseType->mBaseType), {});