* handle classrefdefs properly, according to the memory model in i8086's

thlcgobj.getaddressregister. This should fix several regressions in the
  compact, large and huge memory models after r33591

git-svn-id: trunk@33637 -
This commit is contained in:
nickysn 2016-05-03 15:11:32 +00:00
parent 18538494b9
commit ce66597df8

View File

@ -245,7 +245,8 @@ implementation
begin
{ implicit pointer types on i8086 follow the default data pointer size for
the current memory model }
if is_implicit_pointer_object_type(size) or is_implicit_array_pointer(size) then
if is_implicit_pointer_object_type(size) or is_implicit_array_pointer(size) or
(size.typ=classrefdef) then
size:=voidpointertype;
{ procvars follow the default code pointer size for the current memory model }