changeset 5226:4d36da56075c

8054883: Segmentation error while running program Summary: Fix pattern matching of range check Reviewed-by: kvn
author dbuck
date Tue, 19 Aug 2014 10:03:45 -0700
parents 682dd189a958
children 1443b6a0483c
files src/share/vm/opto/ifnode.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/ifnode.cpp	Tue Aug 19 04:24:52 2014 -0700
+++ b/src/share/vm/opto/ifnode.cpp	Tue Aug 19 10:03:45 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -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) {