mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +02:00
Fixed mDeferredLifetimeEnds during ignoreWrites
This commit is contained in:
parent
ce21b8d542
commit
bdff67509c
1 changed files with 2 additions and 1 deletions
|
@ -3423,6 +3423,7 @@ void BfModule::VisitCodeBlock(BfBlock* block)
|
||||||
auto lifetimeStart = mBfIRBuilder->CreateLifetimeStart(tempVar);
|
auto lifetimeStart = mBfIRBuilder->CreateLifetimeStart(tempVar);
|
||||||
mBfIRBuilder->ClearDebugLocation(lifetimeStart);
|
mBfIRBuilder->ClearDebugLocation(lifetimeStart);
|
||||||
|
|
||||||
|
if (!mBfIRBuilder->mIgnoreWrites)
|
||||||
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
|
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
|
||||||
mBfIRBuilder->SetInsertPoint(prevInsertBlock);
|
mBfIRBuilder->SetInsertPoint(prevInsertBlock);
|
||||||
if (exprEvaluator->mResult.IsSplat())
|
if (exprEvaluator->mResult.IsSplat())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue