[clang] [llvm] [llvm][clang] Sandbox filesystem reads (PR #165350)
Ben Langmuir via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 15:48:43 PST 2025
================
@@ -1132,6 +1147,8 @@ bool is_other(const basic_file_status &status) {
}
std::error_code is_other(const Twine &Path, bool &Result) {
+ sandbox::violationIfEnabled();
----------------
benlangmuir wrote:
That's my weak preference, but I won't block the PR over this if anyone disagrees. It is a (tiny) perf win to only check it once, but I doubt it matters.
https://github.com/llvm/llvm-project/pull/165350
More information about the llvm-commits
mailing list