[clang] [HIP] Perform implicit pointer cast when compiling HIP, not when -fcuda-is-device (PR #165387)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 25 08:27:32 PST 2025


Juan Manuel Martinez =?utf-8?q?CaamaƱo?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/165387 at github.com>


================
@@ -6728,14 +6728,13 @@ ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
 
     checkDirectCallValidity(*this, Fn, FD, ArgExprs);
 
-    // If this expression is a call to a builtin function in HIP device
+    // If this expression is a call to a builtin function in HIP
----------------
shiltian wrote:

maybe re-format this comment. the line break looks awful.

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


More information about the cfe-commits mailing list