mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Null conditional fixes
This commit is contained in:
parent
bb66c77da8
commit
f6752b703d
4 changed files with 15 additions and 1 deletions
|
@ -15485,6 +15485,7 @@ BfTypedValue BfExprEvaluator::SetupNullConditional(BfTypedValue thisValue, BfTok
|
|||
else
|
||||
isNotNull = mModule->mBfIRBuilder->CreateIsNotNull(thisValue.mValue);
|
||||
BfIRBlock notNullBB = mModule->mBfIRBuilder->CreateBlock("nullCond.notNull");
|
||||
pendingNullCond->mNotNullBBs.Add(notNullBB);
|
||||
mModule->mBfIRBuilder->CreateCondBr(isNotNull, notNullBB, pendingNullCond->mDoneBB);
|
||||
|
||||
mModule->AddBasicBlock(notNullBB);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue