提交 f76e56da 编写于 作者: K kvn

6812217: Base memory of MergeMem node violates assert during killing expanded AllocateArray node

Summary: The assert in MergeMemNode::memory_at() misses the case when address is TOP.
Reviewed-by: never
上级 56a4ae55
...@@ -4077,6 +4077,7 @@ Node* MergeMemNode::memory_at(uint alias_idx) const { ...@@ -4077,6 +4077,7 @@ Node* MergeMemNode::memory_at(uint alias_idx) const {
n = base_memory(); n = base_memory();
assert(Node::in_dump() assert(Node::in_dump()
|| n == NULL || n->bottom_type() == Type::TOP || n == NULL || n->bottom_type() == Type::TOP
|| n->adr_type() == NULL // address is TOP
|| n->adr_type() == TypePtr::BOTTOM || n->adr_type() == TypePtr::BOTTOM
|| n->adr_type() == TypeRawPtr::BOTTOM || n->adr_type() == TypeRawPtr::BOTTOM
|| Compile::current()->AliasLevel() == 0, || Compile::current()->AliasLevel() == 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册