2
0
Эх сурвалжийг харах

ncgmat: fix location for constant divisions-by-power-of-two after a291347d

Karoly Balogh 23 цаг өмнө
parent
commit
ed65f26e98
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      compiler/ncgmat.pas

+ 3 - 0
compiler/ncgmat.pas

@@ -431,6 +431,9 @@ implementation
                     End
                   Else { not signed }
                     cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,power,hreg1);
+
+                  location_reset(location,LOC_REGISTER,opsize);
+                  location.register:=hreg1;
                 End
               else
                 begin