diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-15 21:11:41 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-15 21:11:41 +0000 |
commit | a135216595c00ddb5ce5f5b853a3d1f4037a13b7 (patch) | |
tree | c36c673052da0b61cfc48dfb294b47a6974f8a29 | |
parent | eeb1cb49244a67327fce088c1f720da1f8c021a9 (diff) |
Fix a broken rewritin of @implementation keyword.
(fixes radar 7649577).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96270 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 74820905c2..9dade66d4a 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/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(), |