[cfe-commits] r157436 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

Fariborz Jahanian fjahanian at apple.com
Thu May 24 15:59:56 PDT 2012


Author: fjahanian
Date: Thu May 24 17:59:56 2012
New Revision: 157436

URL: http://llvm.org/viewvc/llvm-project?rev=157436&view=rev
Log:
cleanup some code.

Modified:
    cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=157436&r1=157435&r2=157436&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Thu May 24 17:59:56 2012
@@ -1885,9 +1885,8 @@
 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;
 }





More information about the cfe-commits mailing list