2
0
Эх сурвалжийг харах

* 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 -

nickysn 9 жил өмнө
parent
commit
ce66597df8

+ 2 - 1
compiler/i8086/hlcgcpu.pas

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