From 5d02c65425b2cb33d5c3b6ca07a13c35b4dac90a Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 5 Jun 2022 23:00:39 +0200 Subject: [PATCH] objcdef: remove duplicate variant start check --- compiler/objcdef.pas | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/objcdef.pas b/compiler/objcdef.pas index 2f519c55ca..87ac64ac8d 100644 --- a/compiler/objcdef.pas +++ b/compiler/objcdef.pas @@ -123,8 +123,6 @@ implementation end; if (varindex<0) then internalerror(2009081805); - if (tfieldvarsym(variantstarts[varindex]).fieldoffset<>field.fieldoffset) then - internalerror(2009081804); { variant at the same level as a previous one } variantstarts.count:=varindex+1;