mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +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,8 +23224,12 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
|
|||
{
|
||||
// Add as a `^1`
|
||||
auto indexType = mModule->ResolveTypeDef(mModule->mCompiler->mIndexTypeDef)->ToTypeInstance();
|
||||
rightTypedValueExpr.mRefNode = opToken;
|
||||
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), {});
|
||||
SizedArray<BfIRValue, 8> enumMembers;
|
||||
enumMembers.Add(valueTypeEmpty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue