* fixed previous commit

git-svn-id: trunk@2763 -
This commit is contained in:
florian 2006-03-05 18:57:36 +00:00
parent 6952e63222
commit 79795d65b5

View File

@ -2436,13 +2436,12 @@ implementation
end;
vmtreg:=cg.getaddressregister(list);
cg.g_maybe_testself(list,href.base);
cg.a_load_ref_reg(list,OS_ADDR,OS_ADDR,href,vmtreg);
{ test validity of VMT }
if not(is_interface(objdef)) and
not(is_cppclass(objdef)) then
begin
cg.a_load_ref_reg(list,OS_ADDR,OS_ADDR,href,vmtreg);
cg.g_maybe_testvmt(list,vmtreg,objdef);
end;
cg.g_maybe_testvmt(list,vmtreg,objdef);
end;