[cfe-commits] r90597 - /cfe/trunk/lib/Frontend/RewriteObjC.cpp

Steve Naroff snaroff at apple.com
Fri Dec 4 13:36:32 PST 2009


Author: snaroff
Date: Fri Dec  4 15:36:32 2009
New Revision: 90597

URL: http://llvm.org/viewvc/llvm-project?rev=90597&view=rev
Log:
Integrate the following from the 'objective-rewrite' branch:

http://llvm.org/viewvc/llvm-project?view=rev&revision=70978


Modified:
    cfe/trunk/lib/Frontend/RewriteObjC.cpp

Modified: cfe/trunk/lib/Frontend/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/RewriteObjC.cpp?rev=90597&r1=90596&r2=90597&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/RewriteObjC.cpp (original)
+++ cfe/trunk/lib/Frontend/RewriteObjC.cpp Fri Dec  4 15:36:32 2009
@@ -2747,7 +2747,7 @@
       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 ";





More information about the cfe-commits mailing list