diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 10:46:20 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 10:46:20 +0000 |
commit | 8b563665c3dc7f3e11b824a58c9676c2a1469aeb (patch) | |
tree | 8788285307e06404f6358197bb236c46c88af376 /clang/lib/Lex/Preprocessor.cpp | |
parent | 2c86fb4bdeb3f63b0c4fff2b9408cbe9fdc0731f (diff) | |
download | bcm5719-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/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index f410ad77389..869890b46cf 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -519,7 +519,7 @@ void Preprocessor::EnterMainSourceFile() { llvm::MemoryBuffer::getMemBufferCopy(Predefines, "<built-in>"); assert(SB && "Cannot create predefined source buffer"); FileID FID = SourceMgr.createFileID(std::move(SB)); - assert(!FID.isInvalid() && "Could not create FileID for predefines?"); + assert(FID.isValid() && "Could not create FileID for predefines?"); setPredefinesFileID(FID); // Start parsing the predefines. |