فهرست منبع

* 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 سال پیش
والد
کامیت
ce66597df8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      compiler/i8086/hlcgcpu.pas

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