diff --git a/src/hotspot/share/opto/compile.cpp b/src/hotspot/share/opto/compile.cpp index 9e29ecb7616..e4e82cbddab 100644 --- a/src/hotspot/share/opto/compile.cpp +++ b/src/hotspot/share/opto/compile.cpp @@ -5265,10 +5265,10 @@ void Compile::igv_print_method_to_file(const char* phase_name, bool append) { void Compile::igv_print_method_to_network(const char* phase_name) { ResourceMark rm; GrowableArray empty_list; - igv_print_graph_to_network(phase_name, (Node*) C->root(), empty_list); + igv_print_graph_to_network(phase_name, empty_list); } -void Compile::igv_print_graph_to_network(const char* name, Node* node, GrowableArray& visible_nodes) { +void Compile::igv_print_graph_to_network(const char* name, GrowableArray& visible_nodes) { if (_debug_network_printer == nullptr) { _debug_network_printer = new IdealGraphPrinter(C); } else { diff --git a/src/hotspot/share/opto/compile.hpp b/src/hotspot/share/opto/compile.hpp index 271013f29c5..6f505e502b5 100644 --- a/src/hotspot/share/opto/compile.hpp +++ b/src/hotspot/share/opto/compile.hpp @@ -680,7 +680,7 @@ public: void igv_print_method_to_file(const char* phase_name = "Debug", bool append = false); void igv_print_method_to_network(const char* phase_name = "Debug"); - void igv_print_graph_to_network(const char* name, Node* node, GrowableArray& visible_nodes); + void igv_print_graph_to_network(const char* name, GrowableArray& visible_nodes); static IdealGraphPrinter* debug_file_printer() { return _debug_file_printer; } static IdealGraphPrinter* debug_network_printer() { return _debug_network_printer; } #endif diff --git a/src/hotspot/share/opto/node.cpp b/src/hotspot/share/opto/node.cpp index d00bd3d3943..76e19360910 100644 --- a/src/hotspot/share/opto/node.cpp +++ b/src/hotspot/share/opto/node.cpp @@ -2057,7 +2057,7 @@ void PrintBFS::print() { if (_print_igv) { Compile* C = Compile::current(); C->init_igv(); - C->igv_print_graph_to_network("PrintBFS", (Node*) C->root(), _print_list); + C->igv_print_graph_to_network("PrintBFS", _print_list); } } else { _output->print_cr("No nodes to print.");