================
@@ -106,18 +106,9 @@ class CrossProcessModuleCache : public ModuleCache {
InMemoryModuleCache InMemory;
public:
- void prepareForGetLock(StringRef ModuleFilename) override {
- // This is a compiler-internal input/output, let's bypass the sandbox.
- auto BypassSandbox = llvm::sys::sandbox::scopedDisable();
-
- // FIXME: Do this in LockFileManager and only if the directory doesn't
- // exist.
- StringRef Dir = llvm::sys::path::parent_path(ModuleFilename);
- llvm::sys::fs::create_directories(Dir);
- }
-
std::unique_ptr<llvm::AdvisoryLock>
getLock(StringRef ModuleFilename) override {
+ auto BypassSandbox = llvm::sys::sandbox::scopedDisable();
----------------
jansvoboda11 wrote:
Move this into the lock manager code please.
https://github.com/llvm/llvm-project/pull/189888
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits