diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2025-09-29 10:01:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 10:01:10 -0700 |
| commit | 0fc972d242f732766b2dc0590d9f241f47427578 (patch) | |
| tree | 88b9c36f019088ebd6515c32a06f404080e8cf8c /llvm/lib/Support/VirtualFileSystem.cpp | |
| parent | 47b8bc46989b99dc3f68ee5e3ab1d9887bbbd076 (diff) | |
| download | llvm-0fc972d242f732766b2dc0590d9f241f47427578.zip llvm-0fc972d242f732766b2dc0590d9f241f47427578.tar.gz llvm-0fc972d242f732766b2dc0590d9f241f47427578.tar.bz2 | |
[llvm] Use the underlying VFS when constructing `RedirectingFileSystem` (#160942)
When the root node of the `RedirectingFileSystem` is to be resolved to
the current working directory, we previously consulted the real FS
instead of the provided underlying VFS. This PR fixes that issue.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
| -rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index cf78459..7ff62d4 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1973,7 +1973,7 @@ private: EC = FS->makeAbsolute(FullPath, Name); Name = canonicalize(Name); } else { - EC = sys::fs::make_absolute(Name); + EC = FS->makeAbsolute(Name); } if (EC) { assert(NameValueNode && "Name presence should be checked earlier"); |
