* 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;
end;
{ Write tables if we are the typesym that defines
this type. This will not be done for simple type renamings }
if (hdef.typesym=newtype) then
{ Write tables if there are no errors and we are the typesym that
defines this type, so this will not be done for simple type renamings }
if (hdef.typ<>errordef) and
(hdef.typesym=newtype) then
begin
{ file position }
oldfilepos:=current_filepos;