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

Fixed mDeferredLifetimeEnds during ignoreWrites

This commit is contained in:
Brian Fiete 2021-09-21 09:58:43 -07:00
parent ce21b8d542
commit bdff67509c

View file

@ -3423,7 +3423,8 @@ void BfModule::VisitCodeBlock(BfBlock* block)
auto lifetimeStart = mBfIRBuilder->CreateLifetimeStart(tempVar);
mBfIRBuilder->ClearDebugLocation(lifetimeStart);
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
if (!mBfIRBuilder->mIgnoreWrites)
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
mBfIRBuilder->SetInsertPoint(prevInsertBlock);
if (exprEvaluator->mResult.IsSplat())
AggregateSplatIntoAddr(exprEvaluator->mResult, tempVar);