Skip to content

Commit dd52096

Browse files
author
Meghana Gupta
committed
Enable removing unreferenced labels for non-dbg as well
If the unreference label had a region, we will end up doing a lot of work in lowerer to generate returnthunks etc Fixes OS#17415331
1 parent 72719d8 commit dd52096

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Backend/FlowGraph.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,10 @@ FlowGraph::Destroy(void)
18471847
}
18481848
}
18491849
NEXT_BLOCK;
1850+
}
1851+
#endif
1852+
if (fHasTry)
1853+
{
18501854
FOREACH_BLOCK_ALL(block, this)
18511855
{
18521856
if (block->GetFirstInstr()->IsLabelInstr())
@@ -1861,8 +1865,6 @@ FlowGraph::Destroy(void)
18611865
}
18621866
} NEXT_BLOCK;
18631867
}
1864-
#endif
1865-
18661868
this->func->isFlowGraphValid = false;
18671869
}
18681870

0 commit comments

Comments
 (0)