diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2025-10-24 11:05:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-24 11:05:22 -0700 |
| commit | 6de1c25d6ba2a22167160ff80f4875b312e79dcd (patch) | |
| tree | b929c5c29e1cab93b0e963a34b106ed40ffca312 /clang/lib/Frontend/CompilerInstance.cpp | |
| parent | 224f18e549c42233e1cc597873803a183927dfb3 (diff) | |
| download | llvm-6de1c25d6ba2a22167160ff80f4875b312e79dcd.zip llvm-6de1c25d6ba2a22167160ff80f4875b312e79dcd.tar.gz llvm-6de1c25d6ba2a22167160ff80f4875b312e79dcd.tar.bz2 | |
[clang] Don't require `FileManager` for creating an output file (#164665)
Conceptually, the `CompilerInstance` doesn't need an instance of the
`FileManager` to create an output file. This PR enables that, removing
an edge-case in `cc1_main()`.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index e3bf0ea..6b09f7f 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -882,7 +882,7 @@ CompilerInstance::createOutputFileImpl(StringRef OutputPath, bool Binary, "File Manager is required to fix up relative path.\n"); AbsPath.emplace(OutputPath); - FileMgr->FixupRelativePath(*AbsPath); + FileManager::fixupRelativePath(getFileSystemOpts(), *AbsPath); OutputPath = *AbsPath; } |
