mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 13:30:47 +02:00
compiler: remove unneeded check that def is objectdef when we have another check that object has vmt. records don't have vmt so we can leave only one check there
git-svn-id: trunk@16668 -
This commit is contained in:
parent
89dc742de2
commit
b7f1ea0a93
@ -1671,8 +1671,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if (procdefinition.typ<>procdef) then
|
if (procdefinition.typ<>procdef) then
|
||||||
internalerror(200305062);
|
internalerror(200305062);
|
||||||
if (tprocdef(procdefinition).struct.typ=objectdef) and
|
if (oo_has_vmt in tprocdef(procdefinition).struct.objectoptions) then
|
||||||
(oo_has_vmt in tprocdef(procdefinition).struct.objectoptions) then
|
|
||||||
begin
|
begin
|
||||||
{ we only need the vmt, loading self is not required and there is no
|
{ we only need the vmt, loading self is not required and there is no
|
||||||
need to check for typen, because that will always get the
|
need to check for typen, because that will always get the
|
||||||
|
Loading…
Reference in New Issue
Block a user