Selaa lähdekoodia

removed the const-in-the-left internalerror

git-svn-id: trunk@25380 -
Károly Balogh 12 vuotta sitten
vanhempi
commit
25619d4991
1 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2 6
      compiler/arm/narmadd.pas

+ 2 - 6
compiler/arm/narmadd.pas

@@ -386,13 +386,9 @@ interface
 
         pass_left_right;
 
+        { pass_left_right moves possible consts to the right, the only
+          remaining case with left consts (currency) can take this path too (KB) }
         if (nodetype in [equaln,unequaln]) and
-          (left.nodetype=ordconstn) and (tordconstnode(left).value=0) then
-          begin
-            { pass_left_right moves possible consts to the right }
-            internalerror(2013082201);
-          end
-        else if (nodetype in [equaln,unequaln]) and
           (right.nodetype=ordconstn) and (tordconstnode(right).value=0) then
           begin
             location_reset(location,LOC_FLAGS,OS_NO);