================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits