* don't try to generate mangled names for methods of categories

for which the parent class hasn't been resolved yet (causes
    a crash)

git-svn-id: trunk@15429 -
This commit is contained in:
Jonas Maebe 2010-06-13 15:43:40 +00:00
parent d6c2326f87
commit 4847103436

View File

@ -595,7 +595,10 @@ implementation
and mark private fields of external classes as "used" (to avoid
bogus notes about them being unused)
}
if is_objc_class_or_protocol(hdef) then
{ watch out for crashes in case of errors }
if is_objc_class_or_protocol(hdef) and
(not is_objccategory(hdef) or
assigned(tobjectdef(hdef).childof)) then
tobjectdef(hdef).finish_objc_data;
if is_cppclass(hdef) then