[clang] [clang][Dependency Scanning] Fix the In-Memory Buffer Used for By-Name Scanning (PR #183396)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 15:00:57 PST 2026


================
@@ -178,11 +183,10 @@ dependencies::initVFSForByNameScanning(
       llvm::makeIntrusiveRefCnt<llvm::vfs::OverlayFileSystem>(BaseFS);
   auto InMemoryFS = llvm::makeIntrusiveRefCnt<llvm::vfs::InMemoryFileSystem>();
   InMemoryFS->setCurrentWorkingDirectory(WorkingDirectory);
-  SmallString<128> FakeInputPath;
+  std::string FakeInputPath("module-include.input");
----------------
jansvoboda11 wrote:

```suggestion
  StringRef FakeInputPath("module-include.input");
```

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


More information about the cfe-commits mailing list