[clang] [HLSL] Implement array temporary support (PR #79382)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 15:50:06 PDT 2024


================
@@ -1442,6 +1445,7 @@ static bool castPreservesZero(const CastExpr *CE) {
   case CK_BitCast:
   case CK_ToUnion:
   case CK_ToVoid:
+  case CK_HLSLArrayRValue:
----------------
efriedma-quic wrote:

Probably should be false, like other lvalue-to-rvalue casts?

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


More information about the cfe-commits mailing list