cleanup some code.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 24 May 2012 22:59:56 +0000 (22:59 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 24 May 2012 22:59:56 +0000 (22:59 +0000)
llvm-svn: 157436

clang/lib/Rewrite/RewriteModernObjC.cpp

index 93c9a1c..7b52f65 100644 (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;
 }