// Mark this typedef as having been generated.
if (!ObjcForwardDecls.insert(ForwardDecl))
- assert(true && "typedef already output");
+ assert(false && "typedef already output");
}
// Replace the @class with typedefs corresponding to the classes.
}
int NumIvars = CDecl->getIntfDeclNumIvars();
+ // If no ivars and no root or if its root, directly or indirectly,
+ // have no ivars (thus not synthesize)
+ // then no need to synthesize this class either.
if (NumIvars <= 0 && (!RCDecl || !ObjcSynthesizedStructs.count(RCDecl)))
return;
Result += "};\n";
// Mark this struct as having been generated.
if (!ObjcSynthesizedStructs.insert(CDecl))
- assert(true && "struct already synthesize- SynthesizeObjcInternalStruct");
+ assert(false && "struct already synthesize- SynthesizeObjcInternalStruct");
}
// RewriteObjcMethodsMetaData - Rewrite methods metadata for instance or