[all-commits] [llvm/llvm-project] 0ceb4e: [CUDA][HIP] fix virtual dtor host/device attr (#12...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Mar 18 14:15:51 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ceb4efefeaa650166254ec8f1836a2ee76be207
      https://github.com/llvm/llvm-project/commit/0ceb4efefeaa650166254ec8f1836a2ee76be207
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/docs/HIPSupport.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaCUDA.cpp
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/SemaCUDA/dtor.cu

  Log Message:
  -----------
  [CUDA][HIP] fix virtual dtor host/device attr (#128926)

When inferring host device attr of virtual dtor of explicit
template class instantiation, clang should be conservative.
This guarantees dtors that may call host functions not to
have implicit device attr, therefore will not be emitted
on device side.

Backports: 0f0665db067f d37a39207bc1

Fixes: #108548



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list