* don't try to generate rtti if the type has an error

git-svn-id: trunk@5271 -
This commit is contained in:
peter 2006-11-07 08:52:53 +00:00
parent a6a300cbbe
commit 99309202bc

View File

@ -553,9 +553,10 @@ implementation
hdef.typesym:=newtype; hdef.typesym:=newtype;
end; end;
{ Write tables if we are the typesym that defines { Write tables if there are no errors and we are the typesym that
this type. This will not be done for simple type renamings } defines this type, so this will not be done for simple type renamings }
if (hdef.typesym=newtype) then if (hdef.typ<>errordef) and
(hdef.typesym=newtype) then
begin begin
{ file position } { file position }
oldfilepos:=current_filepos; oldfilepos:=current_filepos;