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

Chris B via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 28 18:03:02 PDT 2024


================
@@ -8511,7 +8514,7 @@ static void HandleHLSLParamModifierAttr(QualType &CurType,
     return;
   if (Attr.getSemanticSpelling() == HLSLParamModifierAttr::Keyword_inout ||
       Attr.getSemanticSpelling() == HLSLParamModifierAttr::Keyword_out)
-    CurType = S.getASTContext().getLValueReferenceType(CurType);
+    CurType = S.HLSL().getInoutParameterType(CurType);
----------------
llvm-beanz wrote:

I put an assert in `SemaHLSL::getInoutParameterType` so that it will fire anywhere we try to adjust a type to the inout/out argument type.

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


More information about the cfe-commits mailing list