* src/z80/peep.c,
[fw/sdcc] / src / SDCCicode.c
index cd1a85ad832a935a8b5f5a4a6af9cebd0f6253eb..6c8ee8a8ac6fd200f8f1298b87b2acb29b2850aa 100644 (file)
@@ -3191,7 +3191,7 @@ geniCodeConditional (ast * tree,int lvl)
   ast *astTrue  = tree->right->left;
   ast *astFalse = tree->right->right;
   operand *cond = ast2iCode (tree->left, lvl+1);
-  operand *result = newiTempOperand (tree->right->ftype, 0);
+  operand *result = newiTempOperand (tree->ftype, 0);
   operand *opTrue, *opFalse;
 
   ic = newiCodeCondition (geniCodeRValue (cond, FALSE), NULL, falseLabel);