summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-02-15 21:11:41 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-02-15 21:11:41 +0000
commit02d964babe4e994ee5a74465a57db9e41c64214b (patch)
tree94b7b840a71b76982662b01740a2c6ca6f1f8e39 /clang/lib/Frontend/RewriteObjC.cpp
parent754946c113eb292c1339148820eae5a3dc1c16f4 (diff)
downloadbcm5719-llvm-02d964babe4e994ee5a74465a57db9e41c64214b.tar.gz
bcm5719-llvm-02d964babe4e994ee5a74465a57db9e41c64214b.zip
Fix a broken rewritin of @implementation keyword.
(fixes radar 7649577). llvm-svn: 96270
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r--clang/lib/Frontend/RewriteObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp
index 74820905c2c..9dade66d4ab 100644
--- a/clang/lib/Frontend/RewriteObjC.cpp
+++ b/clang/lib/Frontend/RewriteObjC.cpp
@@ -1054,7 +1054,7 @@ void RewriteObjC::RewriteImplementationDecl(Decl *OID) {
ObjCImplementationDecl *IMD = dyn_cast<ObjCImplementationDecl>(OID);
ObjCCategoryImplDecl *CID = dyn_cast<ObjCCategoryImplDecl>(OID);
- InsertText(IMD ? IMD->getLocEnd() : CID->getLocEnd(), "// ");
+ InsertText(IMD ? IMD->getLocStart() : CID->getLocStart(), "// ");
for (ObjCCategoryImplDecl::instmeth_iterator
I = IMD ? IMD->instmeth_begin() : CID->instmeth_begin(),
OpenPOWER on IntegriCloud