[PATCH] D144873: [OpenMP] Ignore implicit casts on assertion for `use_device_ptr`

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 06:54:13 PST 2023


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, ABataev, ronlieb, carlo.bertolli.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

There was an assertion triggering when invoking a captured member whose
initializer was in a blase class. This patch fixes it by allowing the
assertion on implicit casts to the base class rather than only the base
class itself.

Fixes https://github.com/llvm/llvm-project/issues/61027


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144873

Files:
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/test/OpenMP/target_data_use_device_ptr_inheritance_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144873.500775.patch
Type: text/x-patch
Size: 19024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230227/8b4849c2/attachment-0001.bin>


More information about the cfe-commits mailing list