7152955: print_method crashes with null root

Reviewed-by: kvn, never
This commit is contained in:
Nils Eliasson 2012-03-13 20:54:56 -07:00 committed by Tom Rodriguez
parent 3683f82865
commit ea28f47062

View File

@ -1875,10 +1875,10 @@ void Compile::Code_Gen() {
cfg.Estimate_Block_Frequency();
cfg.GlobalCodeMotion(m,unique(),proj_list);
if (failing()) return;
print_method("Global code motion", 2);
if (failing()) return;
NOT_PRODUCT( verify_graph_edges(); )
debug_only( cfg.verify(); )