8036898: assert(t != NULL) failed: must set before get
Ignore nodes without a type when checking for speculative types in Compile::remove_speculative_types(...). Reviewed-by: kvn, roland
This commit is contained in:
parent
ebe6520025
commit
65d6e6b331
@ -4048,8 +4048,8 @@ void Compile::remove_speculative_types(PhaseIterGVN &igvn) {
|
|||||||
worklist.push(root());
|
worklist.push(root());
|
||||||
for (uint next = 0; next < worklist.size(); ++next) {
|
for (uint next = 0; next < worklist.size(); ++next) {
|
||||||
Node *n = worklist.at(next);
|
Node *n = worklist.at(next);
|
||||||
const Type* t = igvn.type(n);
|
const Type* t = igvn.type_or_null(n);
|
||||||
assert(t == t->remove_speculative(), "no more speculative types");
|
assert((t == NULL) || (t == t->remove_speculative()), "no more speculative types");
|
||||||
if (n->is_Type()) {
|
if (n->is_Type()) {
|
||||||
t = n->as_Type()->type();
|
t = n->as_Type()->type();
|
||||||
assert(t == t->remove_speculative(), "no more speculative types");
|
assert(t == t->remove_speculative(), "no more speculative types");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user