[compiler-rt] [scudo] Update error handling for cache entry count in secondary cach… (PR #95595)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 14:22:15 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 53c93a33be8cc78c35eccbe75053344fc9b2346b 55a0d1e096437df4f8165b4e96353cb8247ea9b2 -- compiler-rt/lib/scudo/standalone/secondary.h compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index 0e0788f830..9a8e53be38 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -391,7 +391,8 @@ public:
return true;
}
if (O == Option::MaxCacheEntriesCount) {
- if (Value < 0) return false;
+ if (Value < 0)
+ return false;
atomic_store_relaxed(
&MaxEntriesCount,
Min<u32>(static_cast<u32>(Value), Config::getEntriesArraySize()));
``````````
</details>
https://github.com/llvm/llvm-project/pull/95595
More information about the llvm-commits
mailing list