diff options
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index bc97ca1..53cd43d 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -4361,11 +4361,9 @@ HandleDirective: FormTokenWithChars(Result, CurPtr, tok::hash); PP->HandleDirective(Result); - if (PP->hadModuleLoaderFatalFailure()) { + if (PP->hadModuleLoaderFatalFailure()) // With a fatal failure in the module loader, we abort parsing. - assert(Result.is(tok::eof) && "Preprocessor did not set tok:eof"); return true; - } // We parsed the directive; lex a token with the new state. return false; |