[clang] [UBSAN] add null and alignment checks for aggregates (PR #175032)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 22 06:17:51 PST 2026


================
@@ -502,8 +502,7 @@ RValue CodeGenFunction::EmitCUDAKernelCallExpr(const CUDAKernelCallExpr *E,
                                                ReturnValueSlot ReturnValue,
                                                llvm::CallBase **CallOrInvoke) {
   // Emit as a device kernel call if CUDA device code is to be generated.
-  // TODO: implement for HIP
-  if (!getLangOpts().HIP && getLangOpts().CUDAIsDevice)
+  if (getLangOpts().CUDAIsDevice)
----------------
erichkeane wrote:

This change probably requires that we write a test for HIP, I don't see this tested.

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


More information about the cfe-commits mailing list