fixed regression bug, although it doesn't fix the regression
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 16 Oct 2001 08:14:04 +0000 (08:14 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 16 Oct 2001 08:14:04 +0000 (08:14 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1406 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c

index 0caa5b2f9643a03d7bfa94523173ded256709600..b3fb315863ed101885819d60acc4163522f3d24d 100644 (file)
@@ -927,6 +927,10 @@ operandOperation (operand * left, operand * right,
 
   switch (op)
     {
+    case '=':
+      // we need this now because of SDCCcse.c:1.52, it's a regression though
+      retval = right;
+      break;
     case '+':
       retval = operandFromValue (valCastLiteral (type,
                                                 operandLitValue (left) +