hotspot/src/share/vm/opto/phaseX.cpp
changeset 27910 8653c71aea40
parent 27708 8a8710cb8fc4
child 30300 4b12a5b40064
--- a/hotspot/src/share/vm/opto/phaseX.cpp	Thu Nov 27 11:33:04 2014 -0500
+++ b/hotspot/src/share/vm/opto/phaseX.cpp	Thu Nov 27 16:54:49 2014 +0100
@@ -1431,7 +1431,7 @@
             Node* castii = in1->raw_out(i);
             if (castii->in(0) != NULL && castii->in(0)->in(0) != NULL && castii->in(0)->in(0)->is_If()) {
               Node* ifnode = castii->in(0)->in(0);
-              if (ifnode->in(1) != NULL && ifnode->in(1)->in(1) == use) {
+              if (ifnode->in(1) != NULL && ifnode->in(1)->is_Bool() && ifnode->in(1)->in(1) == use) {
                 // Reprocess a CastII node that may depend on an
                 // opaque node value when the opaque node is
                 // removed. In case it carries a dependency we can do