forked from OSchip/llvm-project
Integrate the following from the 'objective-rewrite' branch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=70978 llvm-svn: 90597
This commit is contained in:
parent
f0df20a5ba
commit
b0e3390f53
|
@ -2747,7 +2747,7 @@ void RewriteObjC::SynthesizeObjCInternalStruct(ObjCInterfaceDecl *CDecl,
|
|||
ReplaceText(LocStart, endHeader-startBuf, Result.c_str(), Result.size());
|
||||
} else {
|
||||
// rewrite the original header *without* disturbing the '{'
|
||||
ReplaceText(LocStart, cursor-startBuf-1, Result.c_str(), Result.size());
|
||||
ReplaceText(LocStart, cursor-startBuf, Result.c_str(), Result.size());
|
||||
}
|
||||
if (RCDecl && ObjCSynthesizedStructs.count(RCDecl)) {
|
||||
Result = "\n struct ";
|
||||
|
|
Loading…
Reference in New Issue