summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJennifer Yu <jennifer.yu@intel.com>2023-03-13 14:12:06 -0700
committerJennifer Yu <jennifer.yu@intel.com>2023-03-14 09:09:20 -0700
commit3d9880ebbcb7d458753ac73a65b401af94c7b762 (patch)
tree983c98917b333f64485cc3c214d3dce0b2472423 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent0ae8f5ac08ae61519e965808cf72f4f6ff09928d (diff)
[OpenMP]Skip generating this[:1] map info for non-member variable.
My change of D14093 is only fixed problem for "pragma target data". The problem still here for "pragma target" what I am missing is: When processing "pragma target data", the VD is passed when call to emitCombinedEntry, so check VD is null as map for this pointer. But when processing "pragma target" the VD is passed as nullptr, so check VD is null is not working. To fix this I add a new parameter IsMapThis. During the call to emitCombinedEntry passes true if it is capturing this pointer and use that instead check of "!VD". Differential Revision: https://reviews.llvm.org/D146000
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions