[compiler-rt] 84afd02 - [sanitizer] Fix Android bot
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 5 13:09:34 PDT 2021
Author: Vitaly Buka
Date: 2021-10-05T13:08:16-07:00
New Revision: 84afd0252504bcce91da9337ad2a852f4df32290
URL: https://github.com/llvm/llvm-project/commit/84afd0252504bcce91da9337ad2a852f4df32290
DIFF: https://github.com/llvm/llvm-project/commit/84afd0252504bcce91da9337ad2a852f4df32290.diff
LOG: [sanitizer] Fix Android bot
We don't need to check for equality, we need to check
that storage is large enough.
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
index 2365beefd0fd9..e7fd580ab9699 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
@@ -72,7 +72,7 @@ struct StackDepotNode {
typedef StackDepotHandle handle_type;
};
-COMPILER_CHECK(StackDepotNode::kMaxUseCount == (u32)kStackDepotMaxUseCount);
+COMPILER_CHECK(StackDepotNode::kMaxUseCount >= (u32)kStackDepotMaxUseCount);
u32 StackDepotHandle::id() { return node_->id; }
int StackDepotHandle::use_count() {
More information about the llvm-commits
mailing list