1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Removed unnecessary change

This commit is contained in:
Brian Fiete 2021-08-30 09:59:28 -07:00
parent 88bd74644e
commit ab93df439d

View file

@ -15801,11 +15801,7 @@ void BfModule::EmitDtorBody()
if (auto bodyBlock = BfNodeDynCast<BfBlock>(methodDef->mBody))
{
VisitEmbeddedStatement(bodyBlock);
// We don't have an exit block and no return was actually emitted, so we set this to false to ensure a proper ret emission later
mCurMethodState->mHadReturn = false;
VisitEmbeddedStatement(bodyBlock);
if (bodyBlock->mCloseBrace != NULL)
{
UpdateSrcPos(bodyBlock->mCloseBrace);