aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TextDiagnostic.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-10-03 05:15:57 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-10-03 05:15:57 +0000
commited1fe5d093df7ad9661f44f4e84caa0c16ad4ca7 (patch)
treec6fa3d33b3f8742b14a91a956e87d5d62b853cd3 /clang/lib/Frontend/TextDiagnostic.cpp
parenta8180a238c1300d1ad8fc3d352fd2f3b4f3f8ebc (diff)
downloadllvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.zip
llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.gz
llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.bz2
Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
Diffstat (limited to 'clang/lib/Frontend/TextDiagnostic.cpp')
-rw-r--r--clang/lib/Frontend/TextDiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnostic.cpp b/clang/lib/Frontend/TextDiagnostic.cpp
index ee24c3b..d2dd192 100644
--- a/clang/lib/Frontend/TextDiagnostic.cpp
+++ b/clang/lib/Frontend/TextDiagnostic.cpp
@@ -1060,7 +1060,7 @@ void TextDiagnostic::emitSnippetAndCaret(
SmallVectorImpl<CharSourceRange>& Ranges,
ArrayRef<FixItHint> Hints,
const SourceManager &SM) {
- assert(!Loc.isInvalid() && "must have a valid source location here");
+ assert(Loc.isValid() && "must have a valid source location here");
assert(Loc.isFileID() && "must have a file location here");
// If caret diagnostics are enabled and we have location, we want to