diff options
author | Steve Naroff <snaroff@apple.com> | 2009-12-04 21:36:32 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-12-04 21:36:32 +0000 |
commit | b0e3390f53526d5f43b1e9c26d9545f9fc771df9 (patch) | |
tree | c725edfcc8fd5473bc443abe5ef22b4a83b5e518 /clang/lib/Frontend/RewriteObjC.cpp | |
parent | f0df20a5ba7fcb5ebd996b9530262b0f1885cf2d (diff) | |
download | bcm5719-llvm-b0e3390f53526d5f43b1e9c26d9545f9fc771df9.tar.gz bcm5719-llvm-b0e3390f53526d5f43b1e9c26d9545f9fc771df9.zip |
Integrate the following from the 'objective-rewrite' branch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=70978
llvm-svn: 90597
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index a1ba4b88341..13577762cbd 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -2747,7 +2747,7 @@ void RewriteObjC::SynthesizeObjCInternalStruct(ObjCInterfaceDecl *CDecl, 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 "; |