Explorar o código

* check UseIncDec before generating an INC instruction in tx86addnode.emit_generic_code

git-svn-id: trunk@32057 -
nickysn %!s(int64=9) %!d(string=hai) anos
pai
achega
457107d165
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/x86/nx86add.pas

+ 2 - 1
compiler/x86/nx86add.pas

@@ -146,7 +146,8 @@ unit nx86add;
                  if (op=A_ADD) and
                     (right.location.loc=LOC_CONSTANT) and
                     (right.location.value=1) and
-                    not(cs_check_overflow in current_settings.localswitches) then
+                    not(cs_check_overflow in current_settings.localswitches) and
+                    UseIncDec then
                   begin
                     emit_reg(A_INC,TCGSize2Opsize[opsize],left.location.register);
                   end