diff options
Diffstat (limited to 'clang/tools/clang-cc/RewriteObjC.cpp')
-rw-r--r-- | clang/tools/clang-cc/RewriteObjC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/clang-cc/RewriteObjC.cpp b/clang/tools/clang-cc/RewriteObjC.cpp index 41f532b2873..46f8e7ead38 100644 --- a/clang/tools/clang-cc/RewriteObjC.cpp +++ b/clang/tools/clang-cc/RewriteObjC.cpp @@ -994,7 +994,7 @@ void RewriteObjC::RewriteImplementationDecl(Decl *OID) { ObjCMethodDecl *OMD = *I; RewriteObjCMethodDecl(OMD, ResultStr); SourceLocation LocStart = OMD->getLocStart(); - SourceLocation LocEnd = OMD->getBody()->getLocStart(); + SourceLocation LocEnd = OMD->getBody(*Context)->getLocStart(); const char *startBuf = SM->getCharacterData(LocStart); const char *endBuf = SM->getCharacterData(LocEnd); @@ -1009,7 +1009,7 @@ void RewriteObjC::RewriteImplementationDecl(Decl *OID) { ObjCMethodDecl *OMD = *I; RewriteObjCMethodDecl(OMD, ResultStr); SourceLocation LocStart = OMD->getLocStart(); - SourceLocation LocEnd = OMD->getBody()->getLocStart(); + SourceLocation LocEnd = OMD->getBody(*Context)->getLocStart(); const char *startBuf = SM->getCharacterData(LocStart); const char *endBuf = SM->getCharacterData(LocEnd); @@ -4445,7 +4445,7 @@ void RewriteObjC::HandleDeclInMainFile(Decl *D) { // definitions using the same code. RewriteBlocksInFunctionProtoType(FD->getType(), FD); - if (CompoundStmt *Body = FD->getBody()) { + if (CompoundStmt *Body = FD->getBody(*Context)) { CurFunctionDef = FD; CollectPropertySetters(Body); CurrentBody = Body; |