[clang] [clang] Fix filler handling for new expression with unspecified bound. (PR #182203)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 22 18:00:47 PST 2026


================
@@ -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


More information about the cfe-commits mailing list