7174884: C1: failures after 7171890: assert(cur_state != NULL) failed: state_before must be set

Reviewed-by: kvn
This commit is contained in:
Christian Thalinger 2012-06-06 15:57:37 -07:00
parent 6d29429c4e
commit 36093c2bf6

View file

@ -466,7 +466,7 @@ void Canonicalizer::do_Intrinsic (Intrinsic* x) {
if (t->is_klass()) { if (t->is_klass()) {
// substitute cls.isInstance(obj) of a constant Class into // substitute cls.isInstance(obj) of a constant Class into
// an InstantOf instruction // an InstantOf instruction
InstanceOf* i = new InstanceOf(t->as_klass(), x->argument_at(1), x->state()); InstanceOf* i = new InstanceOf(t->as_klass(), x->argument_at(1), x->state_before());
set_canonical(i); set_canonical(i);
// and try to canonicalize even further // and try to canonicalize even further
do_InstanceOf(i); do_InstanceOf(i);