diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 01:21:02 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 01:21:02 +0000 |
commit | 4a2ef80d896c1bac38ce113ec19a8d509a619288 (patch) | |
tree | fb9610d322033e7b2525fe1d5136ce6651ecaf18 /include/clang/Basic/Diagnostic.h | |
parent | 2626a2ad844a762dfda50b861c46918924eb44aa (diff) | |
download | clang-4a2ef80d896c1bac38ce113ec19a8d509a619288.tar.gz clang-4a2ef80d896c1bac38ce113ec19a8d509a619288.tar.bz2 clang-4a2ef80d896c1bac38ce113ec19a8d509a619288.tar.xz |
Simplify. No behavior change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Diagnostic.h')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 85e2cf5c7a..3af8ea2094 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -77,7 +77,7 @@ public: bool BeforePreviousInsertions = false) { FixItHint Hint; Hint.RemoveRange = - CharSourceRange(SourceRange(InsertionLoc, InsertionLoc), false); + CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); Hint.CodeToInsert = Code; Hint.BeforePreviousInsertions = BeforePreviousInsertions; return Hint; @@ -90,7 +90,7 @@ public: bool BeforePreviousInsertions = false) { FixItHint Hint; Hint.RemoveRange = - CharSourceRange(SourceRange(InsertionLoc, InsertionLoc), false); + CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); Hint.InsertFromRange = FromRange; Hint.BeforePreviousInsertions = BeforePreviousInsertions; return Hint; |