changeset 7035:75430ce42425

8054883: Segmentation error while running program Summary: Fix pattern matching of range check Reviewed-by: kvn
author iveresov
date Wed, 13 Aug 2014 17:37:11 -0700
parents 57d0dc8ab85b
children e2ed74d2e054
files src/share/vm/opto/ifnode.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/ifnode.cpp	Tue Sep 02 13:02:26 2014 -0700
+++ b/src/share/vm/opto/ifnode.cpp	Wed Aug 13 17:37:11 2014 -0700
@@ -503,7 +503,7 @@
   jint  off = 0;
   if (l->is_top()) {
     return 0;
-  } else if (l->is_Add()) {
+  } else if (l->Opcode() == Op_AddI) {
     if ((off = l->in(1)->find_int_con(0)) != 0) {
       ind = l->in(2);
     } else if ((off = l->in(2)->find_int_con(0)) != 0) {