parent
3f88afad2f
commit
c37a1d6e0f
|
@ -1885,9 +1885,8 @@ void RewriteModernObjC::WarnAboutReturnGotoStmts(Stmt *S)
|
|||
Stmt *RewriteModernObjC::RewriteObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) {
|
||||
SourceLocation startLoc = S->getAtLoc();
|
||||
ReplaceText(startLoc, strlen("@autoreleasepool"), "/* @autoreleasepool */");
|
||||
std::string buf;
|
||||
buf = "{ __AtAutoreleasePool __autoreleasepool; ";
|
||||
ReplaceText(S->getSubStmt()->getLocStart(), 1, buf);
|
||||
ReplaceText(S->getSubStmt()->getLocStart(), 1,
|
||||
"{ __AtAutoreleasePool __autoreleasepool; ");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue