[clang] [Clang][CodeGen][CUDA] Add missing null-check assertions in CGCUDARuntime (PR #181167)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 22 18:36:27 PST 2026
================
@@ -26,7 +26,7 @@ static llvm::Value *emitGetParamBuf(CodeGenFunction &CGF,
const CUDAKernelCallExpr *E) {
auto *GetParamBuf = CGF.getContext().getcudaGetParameterBufferDecl();
const FunctionProtoType *GetParamBufProto =
- GetParamBuf->getType()->getAs<FunctionProtoType>();
+ GetParamBuf->getType()->castAs<FunctionProtoType>();
----------------
ojhunt wrote:
Unnecessary and incorrect change. LLM?
https://github.com/llvm/llvm-project/pull/181167
More information about the cfe-commits
mailing list