Browse Source

* fix temp release for 64bit compare

git-svn-id: trunk@8557 -
peter 18 years ago
parent
commit
399a2a86fa
1 changed files with 1 additions and 2 deletions
  1. 1 2
      compiler/i386/n386add.pas

+ 1 - 2
compiler/i386/n386add.pas

@@ -278,6 +278,7 @@ interface
                  hregister:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
                  hregister2:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
                  cg64.a_load64_loc_reg(current_asmdata.CurrAsmList,left.location,joinreg64(hregister,hregister2));
+                 location_freetemp(current_asmdata.CurrAsmList,left.location);
                  location_reset(left.location,LOC_REGISTER,OS_64);
                  left.location.register64.reglo:=hregister;
                  left.location.register64.reghi:=hregister2;
@@ -332,8 +333,6 @@ interface
            end;
          end;
 
-        location_freetemp(current_asmdata.CurrAsmList,left.location);
-
         { we have LOC_JUMP as result }
         location_reset(location,LOC_JUMP,OS_NO)
       end;