[clang] [HLSL] Implement output parameter (PR #101083)

John McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 14:58:05 PDT 2024


================
@@ -11427,6 +11427,19 @@ static void AnalyzeImplicitConversions(
     return;
   }
 
+  if (auto *OutArgE = dyn_cast<HLSLOutArgExpr>(E)) {
+    // The base expression is only used to initialize the parameter for
+    // arguments to `inout` parameters, so we only traverse down the base
+    // expression for `inout` cases.
----------------
rjmccall wrote:

Yeah, since you're not supporting C++ types here, it's fine to leave the work for later.

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


More information about the cfe-commits mailing list