-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TSan] Invalid IR generated for atomicrmw with pointers #85226
Comments
nikic
added a commit
that referenced
this issue
Mar 15, 2024
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 #85226.
github-project-automation
bot
moved this from Needs Triage
to Done
in LLVM Release Status
Mar 15, 2024
/cherry-pick ff2fb2a |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Mar 15, 2024
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 llvm#85226. (cherry picked from commit ff2fb2a)
/pull-request #85371 |
tstellar
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Mar 19, 2024
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 llvm#85226. (cherry picked from commit ff2fb2a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://llvm.godbolt.org/z/o3nej9cKj
This produces:
The text was updated successfully, but these errors were encountered: