[AsmWriter] Fix printing of atomicrmw xchg with pointer op
authorNikita Popov <npopov@redhat.com>
Tue, 13 Dec 2022 11:46:09 +0000 (12:46 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 13 Dec 2022 11:49:36 +0000 (12:49 +0100)
commit50515824c84dbc0194264791e7d802b61d57b81a
treeaee84bfdf86d775e6fcb6b763c06368f1c5814df
parenta1bd85cfc3b27fc736af35046811596a3ba13262
[AsmWriter] Fix printing of atomicrmw xchg with pointer op

atomicrmw always needs to print all types, even if the xchg value
type happens to be the same as the pointer operand type. This
couldn't occur prior to opaque pointers.
llvm/lib/IR/AsmWriter.cpp
llvm/test/Assembler/opaque-ptr.ll