mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54: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,7 +3423,8 @@ void BfModule::VisitCodeBlock(BfBlock* block)
|
||||||
auto lifetimeStart = mBfIRBuilder->CreateLifetimeStart(tempVar);
|
auto lifetimeStart = mBfIRBuilder->CreateLifetimeStart(tempVar);
|
||||||
mBfIRBuilder->ClearDebugLocation(lifetimeStart);
|
mBfIRBuilder->ClearDebugLocation(lifetimeStart);
|
||||||
|
|
||||||
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
|
if (!mBfIRBuilder->mIgnoreWrites)
|
||||||
|
mCurMethodState->mCurScope->mPrevScope->mDeferredLifetimeEnds.push_back(tempVar);
|
||||||
mBfIRBuilder->SetInsertPoint(prevInsertBlock);
|
mBfIRBuilder->SetInsertPoint(prevInsertBlock);
|
||||||
if (exprEvaluator->mResult.IsSplat())
|
if (exprEvaluator->mResult.IsSplat())
|
||||||
AggregateSplatIntoAddr(exprEvaluator->mResult, tempVar);
|
AggregateSplatIntoAddr(exprEvaluator->mResult, tempVar);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue