================
@@ -7425,11 +7422,10 @@ ExprResult Sema::BuildResolvedCallExpr(Expr *Fn,
NamedDecl *NDecl,
CallExpr *TheCall;
if (Config) {
- assert(UsesADL == ADLCallKind::NotADL &&
- "CUDAKernelCallExpr should not use ADL");
TheCall = CUDAKernelCallExpr::Create(Context, Fn, cast<CallExpr>(Config),
Args, ResultTy, VK_PRValue, RParenLoc,
CurFPFeatureOverrides(), NumParams);
+ TheCall->setADLCallKind(UsesADL);
----------------
Fznamznon wrote:
Should the constructor of `CUDAKernelCallExpr` instead have `UsesADL`
parameter? Right now it is hardcoded to always be nonADL by
https://reviews.llvm.org/D55534 which assumed that CUDA kernel calls never use
ADL.
https://github.com/llvm/llvm-project/pull/240947
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits