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/Frontend/DiagnosticRenderer.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/Frontend/DiagnosticRenderer.cpp')
-rw-r--r-- | clang/lib/Frontend/DiagnosticRenderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/DiagnosticRenderer.cpp b/clang/lib/Frontend/DiagnosticRenderer.cpp index 923d5e97c13..6ef9a89d86f 100644 --- a/clang/lib/Frontend/DiagnosticRenderer.cpp +++ b/clang/lib/Frontend/DiagnosticRenderer.cpp @@ -518,7 +518,7 @@ void DiagnosticRenderer::emitMacroExpansions(SourceLocation Loc, ArrayRef<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"); // Produce a stack of macro backtraces. SmallVector<SourceLocation, 8> LocationStack; @@ -541,7 +541,7 @@ void DiagnosticRenderer::emitMacroExpansions(SourceLocation Loc, // backtraces. if (Loc.isFileID()) Loc = SM.getImmediateMacroCallerLoc(LocationStack.back()); - assert(!Loc.isInvalid() && "must have a valid source location here"); + assert(Loc.isValid() && "must have a valid source location here"); } LocationStack.erase(LocationStack.begin(), @@ -598,7 +598,7 @@ void DiagnosticNoteRenderer::emitImportLocation(SourceLocation Loc, SmallString<200> MessageStorage; llvm::raw_svector_ostream Message(MessageStorage); Message << "in module '" << ModuleName; - if (!PLoc.isInvalid()) + if (PLoc.isValid()) Message << "' imported from " << PLoc.getFilename() << ':' << PLoc.getLine(); Message << ":"; |