[compiler-rt] 9254b81 - [tsan] Fix typo in type (#115769)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 13:16:29 PST 2024


Author: Vitaly Buka
Date: 2024-11-11T13:16:27-08:00
New Revision: 9254b81990a403f0a5d4a96a4e9efc69e19870bc

URL: https://github.com/llvm/llvm-project/commit/9254b81990a403f0a5d4a96a4e9efc69e19870bc
DIFF: https://github.com/llvm/llvm-project/commit/9254b81990a403f0a5d4a96a4e9efc69e19870bc.diff

LOG: [tsan] Fix typo in type (#115769)

Introduced with #114931
Fixes https://github.com/golang/go/issues/70283

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp b/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
index f95b95735e0e31..527e5a9b4a8d8a 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
@@ -987,7 +987,7 @@ SANITIZER_INTERFACE_ATTRIBUTE
 void __tsan_go_atomic64_compare_exchange(ThreadState *thr, uptr cpc, uptr pc,
                                          u8 *a) {
   a64 cmp = *(a64 *)(a + 8);
-  a32 cur = AtomicGoRet<OpCAS>(thr, cpc, pc, mo_acq_rel, mo_acquire, *(a64 **)a,
+  a64 cur = AtomicGoRet<OpCAS>(thr, cpc, pc, mo_acq_rel, mo_acquire, *(a64 **)a,
                                cmp, *(a64 *)(a + 16));
   *(bool *)(a + 24) = (cur == cmp);
 }


        


More information about the llvm-commits mailing list