mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fix for valueless sized array init
This commit is contained in:
parent
ab004faa78
commit
b3e225b360
1 changed files with 2 additions and 1 deletions
|
@ -17165,7 +17165,8 @@ void BfExprEvaluator::InitializedSizedArray(BfSizedArrayType* arrayType, BfToken
|
|||
auto arrayValue = mModule->CreateAlloca(arrayType);
|
||||
mResult = BfTypedValue(arrayValue, arrayType, BfTypedValueKind_TempAddr);
|
||||
}
|
||||
_CreateMemArray(mResult, openToken, valueExprs, commas, closeToken);
|
||||
if (!arrayType->IsValuelessType())
|
||||
_CreateMemArray(mResult, openToken, valueExprs, commas, closeToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue