diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-09-11 09:08:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-11 09:08:47 -0700 |
commit | d1c0b1b6203d4005ad9a1baefe843ab45b3693a8 (patch) | |
tree | 187e6eb5af65664e0b12b96bf6e1deebeb6baaee /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 05bbb947cf3b263c9f6e6908de9b9ec04f9cca4b (diff) | |
download | llvm-d1c0b1b6203d4005ad9a1baefe843ab45b3693a8.zip llvm-d1c0b1b6203d4005ad9a1baefe843ab45b3693a8.tar.gz llvm-d1c0b1b6203d4005ad9a1baefe843ab45b3693a8.tar.bz2 |
[clang] Use VFS for `-fopenmp-host-ir-file-path` (#156727)
This is a follow-up to #150124. This PR makes it so that the
`-fopenmp-host-ir-file-path` respects VFS overlays, like any other input
file.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5e96f5b..a16dfb5 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -582,8 +582,7 @@ void CodeGenModule::createOpenCLRuntime() { } void CodeGenModule::createOpenMPRuntime() { - if (!LangOpts.OMPHostIRFile.empty() && - !llvm::sys::fs::exists(LangOpts.OMPHostIRFile)) + if (!LangOpts.OMPHostIRFile.empty() && !FS->exists(LangOpts.OMPHostIRFile)) Diags.Report(diag::err_omp_host_ir_file_not_found) << LangOpts.OMPHostIRFile; |