================ @@ -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); ---------------- rjmccall wrote:
There are semantic restrictions here, right? If nothing else, `CurType` can't be a reference type. https://github.com/llvm/llvm-project/pull/101083 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits