Explorar el Código

* also support LOC_CREGISTER and LOC_CREFERENCE in in_not_assign_x and in_neg_assign_x

git-svn-id: trunk@35751 -
nickysn hace 8 años
padre
commit
c6680a32d7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      compiler/ncginl.pas

+ 2 - 2
compiler/ncginl.pas

@@ -513,7 +513,7 @@ implementation
 
           location_reset(location,LOC_VOID,OS_NO);
 
-          if left.location.loc=LOC_REGISTER then
+          if left.location.loc in [LOC_REGISTER,LOC_CREGISTER] then
             begin
 {$ifndef cpu64bitalu}
               if def_cgsize(left.resultdef) in [OS_64,OS_S64] then
@@ -522,7 +522,7 @@ implementation
 {$endif not cpu64bitalu}
                 hlcg.a_op_reg_loc(current_asmdata.CurrAsmList,negnotop[inlinenumber],left.resultdef,left.location.register,left.location);
             end
-          else if left.location.loc=LOC_REFERENCE then
+          else if left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE] then
             begin
 {$ifndef cpu64bitalu}
               if def_cgsize(left.resultdef) in [OS_64,OS_S64] then