[flang-commits] [flang] [llvm] [OpenMP][Flang] Fix atomic operations on complex types (PR #165366)
Krish Gupta via flang-commits
flang-commits at lists.llvm.org
Tue Oct 28 06:45:23 PDT 2025
KrxGu wrote:
@kparzysz or @tblah Can one of you please review this fix for #165184?
The issue was that atomic operations on `complex(8)` and larger complex types were only transferring 8 bytes (pointer size) instead of the full struct size, causing the imaginary part to be lost.
The fix changes the size calculation in `OMPIRBuilder::createAtomicRead/Write()` to use the element type instead of the pointer type. I've added regression tests and all CI checks are passing.
Thanks in advance for your time! CI all green
https://github.com/llvm/llvm-project/pull/165366
More information about the flang-commits
mailing list