[all-commits] [llvm/llvm-project] 853d40: [OpenMP] Ignore implicit casts on assertion for `u...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Feb 27 08:48:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 853d4059135bdadf74d67f59215b21026b6f939e
      https://github.com/llvm/llvm-project/commit/853d4059135bdadf74d67f59215b21026b6f939e
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    A clang/test/OpenMP/target_data_use_device_ptr_inheritance_codegen.cpp

  Log Message:
  -----------
  [OpenMP] Ignore implicit casts on assertion for `use_device_ptr`

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

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D144873




More information about the All-commits mailing list