[MLIR] Avoid some pointer element type accesses
authorNikita Popov <npopov@redhat.com>
Tue, 29 Mar 2022 16:21:39 +0000 (18:21 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 30 Mar 2022 08:00:51 +0000 (10:00 +0200)
commitea043ea1831d3f40b06535cab259f8f4946735b0
tree791b59c635cdc25996ec15981a594870bd836303
parent8a72391f609f016b0aef17e728aca65027a80cc4
[MLIR] Avoid some pointer element type accesses

Determine the element type from the MLIR LLVMPointerType, rather
than the LLVM PointerType.
mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp