diff --git a/src/main/java/dk/camelot64/kickc/passes/Pass1FixLValuesLoHi.java b/src/main/java/dk/camelot64/kickc/passes/Pass1FixLValuesLoHi.java index 3ebb978f8..8bde669d1 100644 --- a/src/main/java/dk/camelot64/kickc/passes/Pass1FixLValuesLoHi.java +++ b/src/main/java/dk/camelot64/kickc/passes/Pass1FixLValuesLoHi.java @@ -43,13 +43,14 @@ public class Pass1FixLValuesLoHi extends Pass1Base { StatementLValue statementLValue = (StatementLValue) statement; LvalueIntermediate intermediate = (LvalueIntermediate) statementLValue.getlValue(); StatementAssignment intermediateAssignment = getProgram().getGraph().getAssignment(intermediate.getVariable()); - intermediates.add(intermediate.getVariable()); if(Operators.LOWBYTE.equals(intermediateAssignment.getOperator()) && intermediateAssignment.getrValue1() == null) { // Found assignment to an intermediate low byte lValue x = ... fixLoHiLValue(programScope, statementsIt, statementLValue, intermediate, intermediateAssignment, Operators.SET_HIBYTE); + intermediates.add(intermediate.getVariable()); } } }