================
@@ -106,6 +106,9 @@ bool Preprocessor::EnterSourceFile(FileID FID, 
ConstSearchDirIterator CurDir,
 ///  and start lexing tokens from it instead of the current buffer.
 void Preprocessor::EnterSourceFileWithLexer(std::unique_ptr<Lexer> TheLexer,
                                             ConstSearchDirIterator CurDir) {
+  if (InCachingLexMode())
+    ExitCachingLexMode();
----------------
yronglin wrote:

Yes, it's unecessary, we don't need ExitCachingLexMode here.

https://github.com/llvm/llvm-project/pull/203716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to