cleanup some code.

llvm-svn: 157436
This commit is contained in:
Fariborz Jahanian 2012-05-24 22:59:56 +00:00
parent 3f88afad2f
commit c37a1d6e0f
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}