From 5a50d05e50e27ed1ce7341777a9b7e4cec4a7f72 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 12 Sep 2015 23:32:56 +0000 Subject: [PATCH] * fixed skipping if intermediate fields in llvm shadow symtable git-svn-id: trunk@31640 - --- compiler/symtable.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/symtable.pas b/compiler/symtable.pas index fd6c2b93aa..458584591a 100644 --- a/compiler/symtable.pas +++ b/compiler/symtable.pas @@ -1956,7 +1956,7 @@ implementation { find the last shadowfield whose offset <= the current field's offset } while (tllvmshadowsymtableentry(symdeflist[shadowindex]).fieldoffset=tfieldvarsym(equivst.symlist[i]).fieldoffset) do + (tllvmshadowsymtableentry(symdeflist[shadowindex+1]).fieldoffset<=tfieldvarsym(equivst.symlist[i]).fieldoffset) do inc(shadowindex); { set the field number and potential offset from that field (in case } { of overlapping variants) }