src/share/vm/opto/mulnode.cpp

changeset 3040
c7b60b601eb4
parent 2314
f95d63e2154a
child 4115
e626685e9f6c
     1.1 --- a/src/share/vm/opto/mulnode.cpp	Wed Jul 27 15:06:35 2011 -0700
     1.2 +++ b/src/share/vm/opto/mulnode.cpp	Wed Jul 27 17:28:36 2011 -0700
     1.3 @@ -98,7 +98,7 @@
     1.4        const Type *t12 = phase->type( mul1->in(2) );
     1.5        if( t12->singleton() && t12 != Type::TOP) { // Left input is an add of a constant?
     1.6          // Compute new constant; check for overflow
     1.7 -        const Type *tcon01 = mul1->as_Mul()->mul_ring(t2,t12);
     1.8 +        const Type *tcon01 = ((MulNode*)mul1)->mul_ring(t2,t12);
     1.9          if( tcon01->singleton() ) {
    1.10            // The Mul of the flattened expression
    1.11            set_req(1, mul1->in(1));

mercurial