From f588b50986fe34cba26fc3ff3100af384c081dba Mon Sep 17 00:00:00 2001 From: Jean Christophe Beyler Date: Wed, 18 Jun 2014 14:14:15 -0700 Subject: [PATCH] ART: Remove a BasicBlock's fall_through pointer in Hide() Remove the fall_through link that a BasicBlock has to its child when calling its Hide function. Useful for removing the visible link that is there when we dump the CFG. Change-Id: Ie82c48b195d1d62e2984d284dcc29ed7d7444db2 Signed-off-by: Jean Christophe Beyler --- compiler/dex/mir_graph.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/dex/mir_graph.cc b/compiler/dex/mir_graph.cc index dee1361a5..baaf00601 100644 --- a/compiler/dex/mir_graph.cc +++ b/compiler/dex/mir_graph.cc @@ -2068,6 +2068,11 @@ void BasicBlock::Hide(CompilationUnit* c_unit) { // Replace child with null child. childPtr->predecessors->Delete(id); } + + // Remove link to children. + taken = NullBasicBlockId; + fall_through = NullBasicBlockId; + successor_block_list_type = kNotUsed; } bool BasicBlock::IsSSALiveOut(const CompilationUnit* c_unit, int ssa_reg) { -- 2.11.0