[clang] [HLSL] Remove support for constructors for user defined structs (PR #190089)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 12:42:20 PDT 2026


================
@@ -5913,8 +5878,10 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity,
   }
   size_t ExpectedSize = ILT.DestTypes.size();
   size_t ActualSize = ILT.ArgExprs.size();
-  if (ExpectedSize == 0 && ActualSize == 0)
+  if (ExpectedSize == 0 && ActualSize == 0) {
+    Init->resizeInits(Ctx, 0);
----------------
hekota wrote:

Why is this necessary?

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


More information about the cfe-commits mailing list