[all-commits] [llvm/llvm-project] 53ea0d: [TSan] Fix atomicrmw xchg with pointer and floats ...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Mar 19 13:28:30 PDT 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: 53ea0de61dcdeed075b81e4986b61054b7336f18
https://github.com/llvm/llvm-project/commit/53ea0de61dcdeed075b81e4986b61054b7336f18
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-03-19 (Tue, 19 Mar 2024)
Changed paths:
M llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
M llvm/test/Instrumentation/ThreadSanitizer/atomic.ll
Log Message:
-----------
[TSan] Fix atomicrmw xchg with pointer and floats (#85228)
atomicrmw xchg also accepts pointer and floating-point values. To handle
those, insert necessary casts to and from integer. This is what we do
for cmpxchg as well.
Fixes https://github.com/llvm/llvm-project/issues/85226.
(cherry picked from commit ff2fb2a1d78585944dcdb9061c8487fe1476dfa4)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list