src/cpu/x86/vm/c1_LIRGenerator_x86.cpp

changeset 2203
c393f046f4c5
parent 2174
f02a8bbe6ed4
child 2228
07a218de38cb
     1.1 --- a/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp	Tue Oct 12 02:21:06 2010 -0700
     1.2 +++ b/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp	Tue Oct 12 23:51:20 2010 -0700
     1.3 @@ -765,7 +765,7 @@
     1.4      ShouldNotReachHere();
     1.5    }
     1.6  
     1.7 -  LIR_Opr addr = new_pointer_register();
     1.8 +  LIR_Opr addr = (type == objectType) ? new_register(T_OBJECT) : new_pointer_register();
     1.9    LIR_Address* a;
    1.10    if(offset.result()->is_constant()) {
    1.11      a = new LIR_Address(obj.result(),

mercurial