summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-10-03 10:46:20 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-10-03 10:46:20 +0000
commit8b563665c3dc7f3e11b824a58c9676c2a1469aeb (patch)
tree8788285307e06404f6358197bb236c46c88af376 /clang/lib/Lex/PPDirectives.cpp
parent2c86fb4bdeb3f63b0c4fff2b9408cbe9fdc0731f (diff)
downloadbcm5719-llvm-8b563665c3dc7f3e11b824a58c9676c2a1469aeb.tar.gz
bcm5719-llvm-8b563665c3dc7f3e11b824a58c9676c2a1469aeb.zip
Replace double negation of !FileID.isInvalid() with FileID.isValid().
+couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228. llvm-svn: 249235
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 82f94d7da4e..c4906e9aa3e 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -1799,7 +1799,7 @@ void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc,
if (IncludePos.isMacroID())
IncludePos = SourceMgr.getExpansionRange(IncludePos).second;
FileID FID = SourceMgr.createFileID(File, IncludePos, FileCharacter);
- assert(!FID.isInvalid() && "Expected valid file ID");
+ assert(FID.isValid() && "Expected valid file ID");
// If all is good, enter the new file!
if (EnterSourceFile(FID, CurDir, FilenameTok.getLocation()))
OpenPOWER on IntegriCloud