提交 6d6af5fa 编写于 作者: I iveresov

8054883: Segmentation error while running program

Summary: Fix pattern matching of range check
Reviewed-by: kvn
上级 5a9d0c59
...@@ -503,7 +503,7 @@ int IfNode::is_range_check(Node* &range, Node* &index, jint &offset) { ...@@ -503,7 +503,7 @@ int IfNode::is_range_check(Node* &range, Node* &index, jint &offset) {
jint off = 0; jint off = 0;
if (l->is_top()) { if (l->is_top()) {
return 0; return 0;
} else if (l->is_Add()) { } else if (l->Opcode() == Op_AddI) {
if ((off = l->in(1)->find_int_con(0)) != 0) { if ((off = l->in(1)->find_int_con(0)) != 0) {
ind = l->in(2); ind = l->in(2);
} else if ((off = l->in(2)->find_int_con(0)) != 0) { } else if ((off = l->in(2)->find_int_con(0)) != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册