[clang] [clang] Refactor `ASTUnit::LoadFromASTFile()` (PR #164265)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 17 09:24:24 PST 2025


================
@@ -5811,7 +5811,13 @@ bool ASTReader::readASTFileControlBlock(
 
     // FIXME: This allows use of the VFS; we do not allow use of the
     // VFS when actually loading a module.
-    auto BufferOrErr = FileMgr.getBufferForFile(Filename);
+    auto Entry =
+        Filename == "-" ? FileMgr.getSTDIN() : FileMgr.getFileRef(Filename);
----------------
jansvoboda11 wrote:

I don't believe so.

https://github.com/llvm/llvm-project/pull/164265


More information about the cfe-commits mailing list