diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 05:15:57 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 05:15:57 +0000 |
commit | ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7 (patch) | |
tree | c6fa3d33b3f8742b14a91a956e87d5d62b853cd3 /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | a8180a238c1300d1ad8fc3d352fd2f3b4f3f8ebc (diff) | |
download | bcm5719-llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.gz bcm5719-llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.zip |
Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 1c7656fa349..3561a57aae4 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -163,7 +163,7 @@ public: unsigned Depth = 0; for (SourceLocation Parent = getIncludeOrExpansionLoc(Loc); - !Parent.isInvalid(); Parent = getIncludeOrExpansionLoc(Parent)) + Parent.isValid(); Parent = getIncludeOrExpansionLoc(Parent)) ++Depth; FileLocs.push_back(std::make_pair(Loc, Depth)); } @@ -569,7 +569,7 @@ struct CounterCoverageMappingBuilder } void VisitStmt(const Stmt *S) { - if (!S->getLocStart().isInvalid()) + if (S->getLocStart().isValid()) extendRegion(S); for (const Stmt *Child : S->children()) if (Child) |