src/hotspot/share/opto/node.cpp
changeset 49908 22eb3e22f245
parent 49487 bde392011cd8
child 50180 ffa644980dff
equal deleted inserted replaced
49907:1ca3406a2101 49908:22eb3e22f245
   698 
   698 
   699 
   699 
   700 //------------------------------is_unreachable---------------------------------
   700 //------------------------------is_unreachable---------------------------------
   701 bool Node::is_unreachable(PhaseIterGVN &igvn) const {
   701 bool Node::is_unreachable(PhaseIterGVN &igvn) const {
   702   assert(!is_Mach(), "doesn't work with MachNodes");
   702   assert(!is_Mach(), "doesn't work with MachNodes");
   703   return outcnt() == 0 || igvn.type(this) == Type::TOP || in(0)->is_top();
   703   return outcnt() == 0 || igvn.type(this) == Type::TOP || (in(0) != NULL && in(0)->is_top());
   704 }
   704 }
   705 
   705 
   706 //------------------------------add_req----------------------------------------
   706 //------------------------------add_req----------------------------------------
   707 // Add a new required input at the end
   707 // Add a new required input at the end
   708 void Node::add_req( Node *n ) {
   708 void Node::add_req( Node *n ) {