hotspot/src/share/vm/opto/machnode.cpp
changeset 27697 ae60f551e5c8
parent 25930 eae8b7490d2c
child 28202 3518158ff5d0
--- a/hotspot/src/share/vm/opto/machnode.cpp	Mon Nov 17 12:57:49 2014 +0300
+++ b/hotspot/src/share/vm/opto/machnode.cpp	Mon Nov 17 14:02:45 2014 -0800
@@ -561,7 +561,9 @@
 const TypePtr *MachProjNode::adr_type() const {
   if (bottom_type() == Type::MEMORY) {
     // in(0) might be a narrow MemBar; otherwise we will report TypePtr::BOTTOM
-    const TypePtr* adr_type = in(0)->adr_type();
+    Node* ctrl = in(0);
+    if (ctrl == NULL)  return NULL; // node is dead
+    const TypePtr* adr_type = ctrl->adr_type();
     #ifdef ASSERT
     if (!is_error_reported() && !Node::in_dump())
       assert(adr_type != NULL, "source must have adr_type");