src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/IfNode.java
changeset 54601 c40b2a190173
parent 54084 84f10bbf993f
child 55509 d58442b8abc1
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54600:69cfd80f8706 54601:c40b2a190173
   766                      * the path
   766                      * the path
   767                      */
   767                      */
   768                     removeThroughFalseBranch(tool, merge);
   768                     removeThroughFalseBranch(tool, merge);
   769                     return true;
   769                     return true;
   770                 } else if (distinct == 1) {
   770                 } else if (distinct == 1) {
       
   771                     // Fortify: Suppress Null Dereference false positive
       
   772                     assert singlePhi != null;
       
   773 
   771                     ValueNode trueValue = singlePhi.valueAt(trueEnd);
   774                     ValueNode trueValue = singlePhi.valueAt(trueEnd);
   772                     ValueNode falseValue = singlePhi.valueAt(falseEnd);
   775                     ValueNode falseValue = singlePhi.valueAt(falseEnd);
   773                     ValueNode conditional = canonicalizeConditionalCascade(tool, trueValue, falseValue);
   776                     ValueNode conditional = canonicalizeConditionalCascade(tool, trueValue, falseValue);
   774                     if (conditional != null) {
   777                     if (conditional != null) {
   775                         conditional = proxyReplacement(conditional);
   778                         conditional = proxyReplacement(conditional);