소스 검색

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

Karoly Balogh 1 일 전
부모
커밋
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