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

Null conditional var check

This commit is contained in:
Brian Fiete 2021-04-11 07:02:28 -04:00
parent 4c70e6e0af
commit 8f83d15429

View file

@ -8014,7 +8014,10 @@ BfTypedValue BfModule::FlushNullConditional(BfTypedValue result, bool ignoreNull
auto pendingNullCond = mCurMethodState->mPendingNullConditional;
if ((result) && (!ignoreNullable))
{
{
if (result.mType->IsVar())
return result;
auto notNullBB = mBfIRBuilder->GetInsertBlock();
//TODO: Make this work, needed for 'void' and such