summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/Rewrite/InclusionRewriter.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/Rewrite/InclusionRewriter.cpp
parenta8180a238c1300d1ad8fc3d352fd2f3b4f3f8ebc (diff)
downloadbcm5719-llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.gz
bcm5719-llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.zip
Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
Diffstat (limited to 'clang/lib/Frontend/Rewrite/InclusionRewriter.cpp')
-rw-r--r--clang/lib/Frontend/Rewrite/InclusionRewriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
index 08d6cf1f92c..97baa720233 100644
--- a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
+++ b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
@@ -160,7 +160,7 @@ void InclusionRewriter::FileChanged(SourceLocation Loc,
void InclusionRewriter::FileSkipped(const FileEntry &/*SkippedFile*/,
const Token &/*FilenameTok*/,
SrcMgr::CharacteristicKind /*FileType*/) {
- assert(!LastInclusionLocation.isInvalid() &&
+ assert(LastInclusionLocation.isValid() &&
"A file, that wasn't found via an inclusion directive, was skipped");
LastInclusionLocation = SourceLocation();
}
OpenPOWER on IntegriCloud