Fixed a bug exposed by fixing the assert in previous patch (one of the tests asserted).
llvm-svn: 43586
This commit is contained in:
parent
aa9a95ca4f
commit
c3cda76362
|
@ -544,6 +544,9 @@ void RewriteTest::SynthesizeObjcInternalStruct(ObjcInterfaceDecl *CDecl,
|
|||
std::string &Result) {
|
||||
assert(CDecl && "Class missing in SynthesizeObjcInternalStruct");
|
||||
assert(CDecl->getName() && "Name missing in SynthesizeObjcInternalStruct");
|
||||
// Do not synthesize more than once.
|
||||
if (ObjcSynthesizedStructs.count(CDecl))
|
||||
return;
|
||||
ObjcInterfaceDecl *RCDecl = CDecl->getSuperClass();
|
||||
if (RCDecl && !ObjcSynthesizedStructs.count(RCDecl)) {
|
||||
// Do it for the root
|
||||
|
|
Loading…
Reference in New Issue