diff graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java @ 10086:e0fb8a213650

fix == on Value
author Mick Jordan <mick.jordan@oracle.com>
date Tue, 18 Jun 2013 14:23:29 -0700
parents 5945a36ccba4
children 6188764e66af
line wrap: on
line diff
--- 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 {