mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed range type population issue
This commit is contained in:
parent
17dc755ee7
commit
f6c49b1084
1 changed files with 5 additions and 1 deletions
|
@ -23224,6 +23224,10 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
|
||||||
{
|
{
|
||||||
// Add as a `^1`
|
// Add as a `^1`
|
||||||
auto indexType = mModule->ResolveTypeDef(mModule->mCompiler->mIndexTypeDef)->ToTypeInstance();
|
auto indexType = mModule->ResolveTypeDef(mModule->mCompiler->mIndexTypeDef)->ToTypeInstance();
|
||||||
|
mModule->PopulateType(indexType->mBaseType);
|
||||||
|
|
||||||
|
BF_ASSERT_REL(indexType->mBaseType->mBaseType != NULL);
|
||||||
|
|
||||||
rightTypedValueExpr.mRefNode = opToken;
|
rightTypedValueExpr.mRefNode = opToken;
|
||||||
|
|
||||||
auto valueTypeEmpty = mModule->mBfIRBuilder->CreateConstAgg(mModule->mBfIRBuilder->MapType(indexType->mBaseType->mBaseType), {});
|
auto valueTypeEmpty = mModule->mBfIRBuilder->CreateConstAgg(mModule->mBfIRBuilder->MapType(indexType->mBaseType->mBaseType), {});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue