[clang] [CUDA][HIP] capture possible ODR-used var (PR #136645)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 19:53:49 PDT 2025
================
@@ -14706,6 +14706,8 @@ ExprResult Sema::BuildOverloadedCallExpr(Scope *S, Expr *Fn,
// the UnresolvedLookupExpr was type-dependent.
if (OverloadResult == OR_Success) {
const FunctionDecl *FDecl = Best->Function;
+ if (LangOpts.CUDA)
----------------
yxsamliu wrote:
LangOpts.CUDA is also true for HIP. same as below
https://github.com/llvm/llvm-project/pull/136645
More information about the cfe-commits
mailing list