@@ -1544,8 +1544,7 @@ static bool interp__builtin_operator_new(InterpState &S, CodePtr OpPC,
1544
1544
// Composite arrays
1545
1545
if (IsArray) {
1546
1546
const Descriptor *Desc =
1547
- S.P .createDescriptor (NewCall, ElemType.getTypePtr (),
1548
- IsArray ? std::nullopt : Descriptor::InlineDescMD);
1547
+ S.P .createDescriptor (NewCall, ElemType.getTypePtr (), std::nullopt);
1549
1548
Block *B =
1550
1549
Allocator.allocate (Desc, NumElems.getZExtValue (), S.Ctx .getEvalID (),
1551
1550
DynamicAllocator::Form::Operator);
@@ -1558,9 +1557,8 @@ static bool interp__builtin_operator_new(InterpState &S, CodePtr OpPC,
1558
1557
QualType AllocType = S.getASTContext ().getConstantArrayType (
1559
1558
ElemType, NumElems, nullptr , ArraySizeModifier::Normal, 0 );
1560
1559
1561
- const Descriptor *Desc =
1562
- S.P .createDescriptor (NewCall, AllocType.getTypePtr (),
1563
- IsArray ? std::nullopt : Descriptor::InlineDescMD);
1560
+ const Descriptor *Desc = S.P .createDescriptor (NewCall, AllocType.getTypePtr (),
1561
+ Descriptor::InlineDescMD);
1564
1562
Block *B = Allocator.allocate (Desc, S.getContext ().getEvalID (),
1565
1563
DynamicAllocator::Form::Operator);
1566
1564
assert (B);
0 commit comments