* 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 -
This commit is contained in:
Jonas Maebe 2016-08-13 14:47:44 +00:00
parent 7ebbb744e9
commit 8760a6fbf8

View File

@ -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,