Browse Source

+ check vmt when loading one, fixes tw2318b

git-svn-id: trunk@1660 -
florian 20 years ago
parent
commit
3f2f8609e3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ncgutil.pas

+ 1 - 0
compiler/ncgutil.pas

@@ -2205,6 +2205,7 @@ implementation
         vmtreg:=cg.getaddressregister(list);
         cg.g_maybe_testself(list,href.base);
         cg.a_load_ref_reg(list,OS_ADDR,OS_ADDR,href,vmtreg);
+        cg.g_maybe_testvmt(list,vmtreg,objdef);
       end;
 
 end.