* call def2regtyp via the chlcgobj class reference so it also works when

hlcg is nil

git-svn-id: branches/hlcgllvm@28144 -
This commit is contained in:
Jonas Maebe 2014-07-03 22:28:35 +00:00
parent 1516661249
commit b520fb12be

View File

@ -134,8 +134,8 @@ implementation
frombytesize,
tobytesize: asizeint;
begin
fromregtyp:=hlcg.def2regtyp(fromsize);
toregtyp:=hlcg.def2regtyp(tosize);
fromregtyp:=chlcgobj.def2regtyp(fromsize);
toregtyp:=chlcgobj.def2regtyp(tosize);
{ int to pointer or vice versa }
if fromregtyp=R_ADDRESSREGISTER then
begin