* avoid range check error in TVMTBuilder.intf_optimize_vtbls by early bailing out if a class has no interfaces

This commit is contained in:
florian 2024-04-21 19:26:01 +02:00
parent 88ab9576b1
commit c3a3cfe80f

View File

@ -680,6 +680,8 @@ implementation
cji: boolean;
begin
ImplIntfCount:=_class.ImplementedInterfaces.count;
if ImplIntfCount=0 then
exit;
SetLength(compats,ImplIntfCount);
SetLength(aequals,ImplIntfCount);
SetLength(impls,ImplIntfCount);