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

Ambrose Leeb via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 09:48:39 PDT 2026


================
@@ -11,7 +11,8 @@
 
 // CHECK-NOT: class_type_info
 // CHECK-DAG: @_ZTV7Derived = linkonce_odr protected unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr null, ptr @_ZN7Derived3fooEv] }
-// CHECK-DAG: @_ZTV4Base = linkonce_odr protected unnamed_addr constant { [3 x ptr] } zeroinitializer
+// CHECK-DAG: @_ZTV4Base = linkonce_odr protected unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr null, ptr @__cxa_pure_virtual] }
+// CHECK-DAG: define weak{{.*}} void @__cxa_pure_virtual()
----------------
Sirraide wrote:

Done

https://github.com/llvm/llvm-project/pull/217427


More information about the cfe-commits mailing list