mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 05:59:08 +02:00
* ensure that _LookupVtableInfoEx isn't called with a type that needs special handling as we can't (or won't) really cover that using some generic RTTI handling
This commit is contained in:
parent
939f7345ac
commit
db66d8f057
@ -3382,6 +3382,10 @@ end;
|
||||
function _LookupVtableInfoEx(AGInterface: TDefaultGenericInterface; ATypeInfo: PTypeInfo; ASize: SizeInt;
|
||||
AFactory: THashFactoryClass): Pointer;
|
||||
begin
|
||||
if ATypeInfo^.Kind in TComparerService.UseBinaryMethods then begin
|
||||
System.Error(reInvalidCast);
|
||||
Exit(Nil);
|
||||
end;
|
||||
case AGInterface of
|
||||
giComparer:
|
||||
Exit(
|
||||
|
Loading…
Reference in New Issue
Block a user