================
@@ -111,10 +118,16 @@ class CrossProcessModuleCache : public ModuleCache {
std::unique_ptr<llvm::AdvisoryLock>
getLock(StringRef ModuleFilename) override {
+ // This is a compiler-internal input/output, let's bypass the sandbox.
+ auto BypassSandbox = llvm::sys::sandbox::scopedDisable();
----------------
benlangmuir wrote:
What's the rationale for the constructor needing you to disable the sandbox but
not the destructor or lock calls, which all involve I/O? We don't support lock
files in the VFS in general, so maybe we should just do this in the constructor
for lock files as well?
https://github.com/llvm/llvm-project/pull/165350
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits