# HG changeset patch # User Mick Jordan # Date 1371590609 25200 # Node ID e0fb8a2136502c8ee67dc8c61e9a0f8f9abe5048 # Parent 9d15ca2f38d1753bec234a62f05658a23dbeef23 fix == on Value diff -r 9d15ca2f38d1 -r e0fb8a213650 graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java --- a/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java Tue Jun 18 14:17:45 2013 -0700 +++ b/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java Tue Jun 18 14:23:29 2013 -0700 @@ -190,7 +190,7 @@ AllocatableValue displacementRegister = load(Constant.forLong(finalDisp)); if (baseRegister.equals(Value.ILLEGAL)) { baseRegister = displacementRegister; - } else if (indexRegister == Value.ILLEGAL) { + } else if (indexRegister.equals(Value.ILLEGAL)) { indexRegister = displacementRegister; scaleEnum = Scale.Times1; } else {