瀏覽代碼

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

Karoly Balogh 23 小時之前
父節點
當前提交
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