[PATCH] D145093: Add map info for dereference pointer.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 08:45:32 PST 2023


ABataev added a comment.

In D145093#4164854 <https://reviews.llvm.org/D145093#4164854>, @jyu2 wrote:

> In D145093#4164528 <https://reviews.llvm.org/D145093#4164528>, @ABataev wrote:
>
>> What result produces `map(a[0][:3]`?
>
> Yes, that would be another way to fix the runtime problem.  However the difficulty is when process array section, section base is different.
> with a[0][:3]
> the section base is a[0]
> with (*a)[:3], the section base is (*a);  It is hard to set a[0] as section base during processing the array section.
>
> That is why I am adding dereference pointer not a[0].

I mean we shall emit the same mapping for `(*a)[:3]` and for `a[0][:3]`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145093/new/

https://reviews.llvm.org/D145093



More information about the cfe-commits mailing list