1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fix for PerformBinaryOperation_NullCoalesce

This commit is contained in:
Brian Fiete 2024-01-02 18:41:09 -05:00
parent 015bf14156
commit 10fdde56c5

View file

@ -23078,6 +23078,7 @@ bool BfExprEvaluator::PerformBinaryOperation_NullCoalesce(BfTokenNode* opToken,
if ((leftValue) && ((leftValue.mType->IsPointer()) || (leftValue.mType->IsFunction()) || (leftValue.mType->IsObject())) || (leftValue.mType->IsNullable()))
{
leftValue = mModule->LoadOrAggregateValue(leftValue);
mModule->mBfIRBuilder->PopulateType(leftValue.mType);
BfType* nullableElementType = NULL;
BfIRValue nullableHasValue;