compiler: cleanup

git-svn-id: trunk@16490 -
This commit is contained in:
paul 2010-12-01 08:19:32 +00:00
parent 668cd1f3c0
commit 37179a6558
2 changed files with 2 additions and 4 deletions

View File

@ -806,9 +806,7 @@ implementation
old_current_procinfo : tprocinfo;
oldmaxfpuregisters : longint;
oldfilepos : tfileposinfo;
old_current_objectdef,
old_current_genericdef,
old_current_specializedef : tobjectdef;
old_current_objectdef : tobjectdef;
templist : TAsmList;
headertai : tai;
i : integer;

View File

@ -305,7 +305,7 @@ implementation
item:=oldsymtablestack.stack;
while assigned(item) and (item^.symtable.symtablelevel>main_program_level) do
item:=item^.next;
if assigned(item) then
if assigned(item) and (item^.symtable<>symtablestack.top) then
symtablestack.push(item^.symtable);
{ Reparse the original type definition }