summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/TypeLoc.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/AST/TypeLoc.cpp
parenta8180a238c1300d1ad8fc3d352fd2f3b4f3f8ebc (diff)
Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
Diffstat (limited to 'clang/lib/AST/TypeLoc.cpp')
-rw-r--r--clang/lib/AST/TypeLoc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/TypeLoc.cpp b/clang/lib/AST/TypeLoc.cpp
index f7f7b05b38b9..d08b07b2ccd6 100644
--- a/clang/lib/AST/TypeLoc.cpp
+++ b/clang/lib/AST/TypeLoc.cpp
@@ -192,7 +192,7 @@ SourceLocation TypeLoc::getBeginLoc() const {
Cur = Cur.getNextTypeLoc();
continue;
default:
- if (!Cur.getLocalSourceRange().getBegin().isInvalid())
+ if (Cur.getLocalSourceRange().getBegin().isValid())
LeftMost = Cur;
Cur = Cur.getNextTypeLoc();
if (Cur.isNull())