diff options
Diffstat (limited to 'clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp')
| -rw-r--r-- | clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp b/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp index 74d59338689..5d0cfb8a8b9 100644 --- a/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp +++ b/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp @@ -42,9 +42,8 @@ static bool isEmptyARCMTMacroStatement(NullStmt *S, return false; SourceManager &SM = Ctx.getSourceManager(); - std::vector<SourceLocation>::iterator - I = std::upper_bound(MacroLocs.begin(), MacroLocs.end(), SemiLoc, - BeforeThanCompare<SourceLocation>(SM)); + std::vector<SourceLocation>::iterator I = llvm::upper_bound( + MacroLocs, SemiLoc, BeforeThanCompare<SourceLocation>(SM)); --I; SourceLocation AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size()); |

