浏览代码

* set resultloc for interfacecom in subscriptn

git-svn-id: trunk@2537 -
Jonas Maebe 19 年之前
父节点
当前提交
1b8baa3bce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/ncgmem.pas

+ 1 - 0
compiler/ncgmem.pas

@@ -284,6 +284,7 @@ implementation
            end
          else if is_interfacecom(left.resulttype.def) then
            begin
+             location_reset(location,LOC_REFERENCE,def_cgsize(resulttype.def));
              tg.GetTempTyped(exprasmlist,left.resulttype.def,tt_normal,location.reference);
              cg.a_load_loc_ref(exprasmlist,OS_ADDR,left.location,location.reference);
              { implicit deferencing also for interfaces }