[all-commits] [llvm/llvm-project] 78ae84: [Clang] [CUDA] Provide device-side definitions of ...

Ambrose Leeb via All-commits all-commits at lists.llvm.org
Fri Sep 11 12:12:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78ae84025be3bc2e711e803b79b8515075c97a80
      https://github.com/llvm/llvm-project/commit/78ae84025be3bc2e711e803b79b8515075c97a80
  Author: Ambrose Leeb <aleeb at nvidia.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/lib/CodeGen/CGVTables.cpp
    M clang/lib/Headers/__clang_hip_runtime_wrapper.h
    A clang/test/CodeGenCUDA/pure_deleted_virtual.cu
    M clang/test/Headers/hip-header.hip
    M clang/test/OpenMP/nvptx_target_pure_deleted_codegen.cpp

  Log Message:
  -----------
  [Clang] [CUDA] Provide device-side definitions of `__cxa_[pure|deleted]_virtual()` (#217427)

Currently, we don't provide definitions of these on the device side, and
since there is also no C++ runtime on the device side, if a call to a
pure or deleted virtual function makes it into the final IR, the program
will fail to assemble because `ptxas` can’t find a definition of
`__cxa_pure_virtual()` or `__cxa_deleted_virtual()`.

This patch updates Clang to emit weak definitions of these functions
that trap.

Fixes #49183, fixes #67533.



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