mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Null conditional var check
This commit is contained in:
parent
4c70e6e0af
commit
8f83d15429
1 changed files with 4 additions and 1 deletions
|
@ -8014,7 +8014,10 @@ BfTypedValue BfModule::FlushNullConditional(BfTypedValue result, bool ignoreNull
|
||||||
auto pendingNullCond = mCurMethodState->mPendingNullConditional;
|
auto pendingNullCond = mCurMethodState->mPendingNullConditional;
|
||||||
|
|
||||||
if ((result) && (!ignoreNullable))
|
if ((result) && (!ignoreNullable))
|
||||||
{
|
{
|
||||||
|
if (result.mType->IsVar())
|
||||||
|
return result;
|
||||||
|
|
||||||
auto notNullBB = mBfIRBuilder->GetInsertBlock();
|
auto notNullBB = mBfIRBuilder->GetInsertBlock();
|
||||||
|
|
||||||
//TODO: Make this work, needed for 'void' and such
|
//TODO: Make this work, needed for 'void' and such
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue