================
@@ -2589,8 +2590,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool
UseGlobal,
else
InitType = AllocType;
- InitializedEntity Entity
- = InitializedEntity::InitializeNew(StartLoc, InitType);
+ bool VariableLengthArrayNew = ArraySize && *ArraySize && !KnownArraySize;
----------------
ojhunt wrote:
There's a bunch of `ArraySize && *ArraySize` in this code, it should really be
cleaned up, but not in this PR (filed
https://github.com/llvm/llvm-project/issues/182790)
https://github.com/llvm/llvm-project/pull/182203
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits