Skip to content

Commit 5865482

Browse files
committed
[clang][Interp][NFC] Don't pass on metadata size for composite arrays
We don't need the metadata size for every element, just for the topmost descriptor.
1 parent 0aa5fa9 commit 5865482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ Descriptor *Program::createDescriptor(const DeclTy &D, const Type *Ty,
372372
// Arrays of composites. In this case, the array is a list of pointers,
373373
// followed by the actual elements.
374374
const Descriptor *ElemDesc = createDescriptor(
375-
D, ElemTy.getTypePtr(), MDSize, IsConst, IsTemporary);
375+
D, ElemTy.getTypePtr(), std::nullopt, IsConst, IsTemporary);
376376
if (!ElemDesc)
377377
return nullptr;
378378
unsigned ElemSize =

0 commit comments

Comments
 (0)