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(),