[CodeGen][OpenMP] Make EmitLoadOfPointer() type consistent
authorNikita Popov <npopov@redhat.com>
Mon, 21 Mar 2022 16:52:40 +0000 (17:52 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 22 Mar 2022 08:37:48 +0000 (09:37 +0100)
commita9656bd1bc3792b81ad5a7277bdf7d8159b3b924
tree0e8b49377125b4da39f8c285018d74e9ba501723
parent2ddd57ae1ec42c4aad8e70645cff82c877a94e3f
[CodeGen][OpenMP] Make EmitLoadOfPointer() type consistent

If necessary insert a bitcast beforehand, so the LLVM-level pointer
type and the Clang-level pointer type line up.
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/target_data_use_device_addr_codegen.cpp