소스 검색

* set shiftval to 0 if we convert a reference to a register paraloc,
as the reference overlaid the shiftval field and hence it could
have any value

git-svn-id: trunk@34303 -

Jonas Maebe 9 년 전
부모
커밋
8760a6fbf8
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      compiler/llvm/llvmpara.pas

+ 3 - 0
compiler/llvm/llvmpara.pas

@@ -123,6 +123,9 @@ unit llvmpara;
                     end;
                     paraloc^.register:=hlcg.getregisterfordef(list,paraloc^.def);
                     paraloc^.llvmvalueloc:=true;
+                    { paraloc^.reference overlaid this field, so zero it now
+                      that we turned it into a register location }
+                    paraloc^.shiftval:=0;
                   end;
                 LOC_REGISTER,
                 LOC_FPUREGISTER,