================
@@ -399,10 +422,14 @@ void RealFileSystem::printImpl(raw_ostream &OS, PrintType
Type,
IntrusiveRefCntPtr<FileSystem> vfs::getRealFileSystem() {
static IntrusiveRefCntPtr<FileSystem> FS =
makeIntrusiveRefCnt<RealFileSystem>(true);
+ sys::sandbox::violationIfEnabled();
----------------
benlangmuir wrote:
We should document that this and `createPhysicalFileSystem` can only be used
outside the sandbox. I think it is a bit less obvious than for the low level
operations.
https://github.com/llvm/llvm-project/pull/165350
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits