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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to