7005865: Crash when running with PrintIRWithLIR

The failure is caused by uninitialized bci number

Reviewed-by: iveresov
This commit is contained in:
Vladimir Danushevsky 2011-04-11 23:02:37 -04:00
parent 7bf0d4d5cd
commit bea445368e

View file

@ -559,7 +559,7 @@ void BlockBegin::substitute_sux(BlockBegin* old_sux, BlockBegin* new_sux) {
// of the inserted block, without recomputing the values of the other blocks // of the inserted block, without recomputing the values of the other blocks
// in the CFG. Therefore the value of "depth_first_number" in BlockBegin becomes meaningless. // in the CFG. Therefore the value of "depth_first_number" in BlockBegin becomes meaningless.
BlockBegin* BlockBegin::insert_block_between(BlockBegin* sux) { BlockBegin* BlockBegin::insert_block_between(BlockBegin* sux) {
BlockBegin* new_sux = new BlockBegin(-99); BlockBegin* new_sux = new BlockBegin(end()->state()->bci());
// mark this block (special treatment when block order is computed) // mark this block (special treatment when block order is computed)
new_sux->set(critical_edge_split_flag); new_sux->set(critical_edge_split_flag);