================
@@ -39,9 +39,11 @@ Block *DynamicAllocator::allocate(const Expr *Source,
PrimType T,
Form AllocForm) {
// Create a new descriptor for an array of the specified size and
// element type.
- const Descriptor *D = allocateDescriptor(
- Source, T, Descriptor::InlineDescMD, NumElements, /*IsConst=*/false,
- /*IsTemporary=*/false, /*IsMutable=*/false);
+ const Descriptor *D =
+ allocateDescriptor(Source, nullptr, T, Descriptor::InlineDescMD,
----------------
efriedma-quic wrote:
I guess it would be some overhead if we have to actually construct a type for
every array size... can we reconstruct the type accurately from `Source`? If
that is the plan, can we assert that the expression is one that
Descriptor::getType() understands?
https://github.com/llvm/llvm-project/pull/200342
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits