浏览代码

* fix compilation for jvm, resolves #33195

git-svn-id: trunk@38283 -
florian 7 年之前
父节点
当前提交
2251e87e41
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ncgmem.pas

+ 2 - 2
compiler/ncgmem.pas

@@ -356,9 +356,9 @@ implementation
                 (target_info.system in systems_garbage_collected_managed_types) then
                 (target_info.system in systems_garbage_collected_managed_types) then
                begin
                begin
                  { take care of the alignment of the fields }
                  { take care of the alignment of the fields }
-                 if not(left.resultdef is tobjectdef) then
+                 if not(left.resultdef is tabstractrecorddef) then
                    Internalerror(2018021601);
                    Internalerror(2018021601);
-                 location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),newalignment(tObjectSymtable(tobjectdef(left.resultdef).symtable).recordalignment,vs.fieldoffset),[]);
+                 location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),newalignment(tabstractrecordsymtable(tabstractrecorddef(left.resultdef).symtable).recordalignment,vs.fieldoffset),[]);
                  case left.location.loc of
                  case left.location.loc of
                     LOC_CREGISTER,
                     LOC_CREGISTER,
                     LOC_REGISTER:
                     LOC_REGISTER: