[clang] [HLSL] get inout/out ABI for array parameters working (PR #111047)

Sarah Spall via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 10:30:58 PDT 2024


================
@@ -4690,8 +4690,9 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
     return emitWritebackArg(*this, args, CRE);
   }
 
-  assert(type->isReferenceType() == E->isGLValue() &&
-         "reference binding to unmaterialized r-value!");
+  assert(type->isArrayParameterType() ||
+         (type->isReferenceType() == E->isGLValue()) &&
+             "reference binding to unmaterialized r-value!");
----------------
spall wrote:

I think failing the original assert means its an r-value, so its both an array parameter type and an r value?

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


More information about the cfe-commits mailing list