[OpenMPIRBuilder] Check GV type instead of pointee type (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 18 Jul 2023 09:28:13 +0000 (11:28 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 18 Jul 2023 09:31:41 +0000 (11:31 +0200)
commit8db30225ecc433fd02b623bc4789904930892eb7
treeaaf495d6879258b5adc3c5ae4b9467a5062d8a91
parentfe705c3426b4ea30d210465553862628b07300b1
[OpenMPIRBuilder] Check GV type instead of pointee type (NFC)

Change the assertion to check the value type instead of the pointee
type. To facilitate this, store GlobalVariable* instead of Constant*
in the map.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp