diff options
author | harishch4 <harishcse44@gmail.com> | 2024-05-17 09:20:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 09:20:52 +0530 |
commit | 5d8354c009d5625fa140be47de1f91275f4698d3 (patch) | |
tree | 05fd44348e7914c426ebf3471ee2cb3be1d095d4 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | c33922666ce219fd6cb3341c3394f72050599552 (diff) | |
download | llvm-5d8354c009d5625fa140be47de1f91275f4698d3.zip llvm-5d8354c009d5625fa140be47de1f91275f4698d3.tar.gz llvm-5d8354c009d5625fa140be47de1f91275f4698d3.tar.bz2 |
[Flang][OpenMP]Missing convert to lhsType in atomic write (#92346)
Fixes test.f90 in #83144.
This issue is observed only when a boolean constant is assigned to a
logical variable. In non-openmp flow, a conversion op is inserted before
assigning it to a logical variable. This patch will insert a fir.convert
operation when the types are not the same, before generating the atomic
write operation.
I've proposed another patch(#85059 ) which removes checks at MLIR level
and looks like it's too permissive. I'm planning to abandon this patch
and address it here.
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions