diff options
Diffstat (limited to 'clang/lib/ARCMigrate')
-rw-r--r-- | clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp | 2 | ||||
-rw-r--r-- | clang/lib/ARCMigrate/TransformActions.cpp | 2 | ||||
-rw-r--r-- | clang/lib/ARCMigrate/Transforms.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp b/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp index 0b3f4c3a656..3ad05e683c7 100644 --- a/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp +++ b/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp @@ -47,7 +47,7 @@ static bool isEmptyARCMTMacroStatement(NullStmt *S, SourceManager::LocBeforeThanCompare(SM)); --I; SourceLocation - AfterMacroLoc = I->getFileLocWithOffset(getARCMTMacroName().size()); + AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size()); assert(AfterMacroLoc.isFileID()); if (AfterMacroLoc == SemiLoc) diff --git a/clang/lib/ARCMigrate/TransformActions.cpp b/clang/lib/ARCMigrate/TransformActions.cpp index 65623a1b313..1321686ca66 100644 --- a/clang/lib/ARCMigrate/TransformActions.cpp +++ b/clang/lib/ARCMigrate/TransformActions.cpp @@ -479,7 +479,7 @@ void TransformActionsImpl::commitReplaceText(SourceLocation loc, SourceManager &SM = Ctx.getSourceManager(); loc = SM.getExpansionLoc(loc); // canReplaceText already checked if loc points at text. - SourceLocation afterText = loc.getFileLocWithOffset(text.size()); + SourceLocation afterText = loc.getLocWithOffset(text.size()); addRemoval(CharSourceRange::getCharRange(loc, afterText)); commitInsert(loc, replacementText); diff --git a/clang/lib/ARCMigrate/Transforms.cpp b/clang/lib/ARCMigrate/Transforms.cpp index 01af5f69578..4244fafe07d 100644 --- a/clang/lib/ARCMigrate/Transforms.cpp +++ b/clang/lib/ARCMigrate/Transforms.cpp @@ -94,7 +94,7 @@ SourceLocation trans::findLocationAfterSemi(SourceLocation loc, SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx); if (SemiLoc.isInvalid()) return SourceLocation(); - return SemiLoc.getFileLocWithOffset(1); + return SemiLoc.getLocWithOffset(1); } /// \brief \arg Loc is the end of a statement range. This returns the location |