[compiler-rt] 8d65bf1 - [Sanitizers][darwin] Fix a -Wcast-qual
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 11:46:34 PDT 2021
Author: Jon Roelofs
Date: 2021-07-21T11:46:07-07:00
New Revision: 8d65bf13b80d87a40b6f5e29b270e5cd7fc3b8d5
URL: https://github.com/llvm/llvm-project/commit/8d65bf13b80d87a40b6f5e29b270e5cd7fc3b8d5
DIFF: https://github.com/llvm/llvm-project/commit/8d65bf13b80d87a40b6f5e29b270e5cd7fc3b8d5.diff
LOG: [Sanitizers][darwin] Fix a -Wcast-qual
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
index 125ecac8b128..083595d1505f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
@@ -532,7 +532,7 @@ void BlockingMutex::Unlock() {
}
void BlockingMutex::CheckLocked() const {
- CHECK_NE(*(OSSpinLock*)&opaque_storage_, 0);
+ CHECK_NE(*(const OSSpinLock*)&opaque_storage_, 0);
}
u64 NanoTime() {
More information about the llvm-commits
mailing list