changeset 10086:e0fb8a213650

fix == on Value
author Mick Jordan <mick.jordan@oracle.com>
date Tue, 18 Jun 2013 14:23:29 -0700
parents 9d15ca2f38d1
children baec10fbe959 836a62f43af9
files graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 {