[clang] [clang] Fix filler handling for new expression with unspecified bound. (PR #182203)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 21:08:21 PST 2026
================
@@ -2206,8 +2206,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal,
<< /*array*/ 2
<< (*ArraySize ? (*ArraySize)->getSourceRange() : TypeRange));
- InitializedEntity Entity
- = InitializedEntity::InitializeNew(StartLoc, AllocType);
+ InitializedEntity Entity =
+ InitializedEntity::InitializeNew(StartLoc, AllocType,
+ /*VariableLengthArrayNew*/ false);
----------------
tbaederr wrote:
```suggestion
/*VariableLengthArrayNew=*/ false);
```
https://github.com/llvm/llvm-project/pull/182203
More information about the cfe-commits
mailing list