mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-07 12:45:55 +02:00
* avoid range check error in TVMTBuilder.intf_optimize_vtbls by early bailing out if a class has no interfaces
This commit is contained in:
parent
88ab9576b1
commit
c3a3cfe80f
@ -680,6 +680,8 @@ implementation
|
|||||||
cji: boolean;
|
cji: boolean;
|
||||||
begin
|
begin
|
||||||
ImplIntfCount:=_class.ImplementedInterfaces.count;
|
ImplIntfCount:=_class.ImplementedInterfaces.count;
|
||||||
|
if ImplIntfCount=0 then
|
||||||
|
exit;
|
||||||
SetLength(compats,ImplIntfCount);
|
SetLength(compats,ImplIntfCount);
|
||||||
SetLength(aequals,ImplIntfCount);
|
SetLength(aequals,ImplIntfCount);
|
||||||
SetLength(impls,ImplIntfCount);
|
SetLength(impls,ImplIntfCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user