[llvm-dev] pointer arithmetic with address space attribute not working

Y Song via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 31 10:26:18 PDT 2019


On Thu, Oct 31, 2019 at 9:08 AM Matt Arsenault <arsenm2 at gmail.com> wrote:
>
>
>
> > On Oct 30, 2019, at 23:20, Y Song via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> >
> > On Wed, Oct 30, 2019 at 11:15 PM Doerfert, Johannes <jdoerfert at anl.gov> wrote:
> >>
> >> Thanks for the detailed info!
> >>
> >> The problem was that I tried without assertions and didn't inspect the IR closely as it contained this,
> >> for now, illegal instruction: %6 = bitcast i8* %5 to i8 addrspace(1)*
> >>
> >> This is clearly a clang error.
> >> I suggest opening a bug report, or sending the reproducer to cfe-dev at llvm.lists.org so someone will take a look that has more clang experience.
> >
> > Thanks! I just verified that without assertion, indeed compilation is
> > successful.
> >
> >>
> >> @Matt Do you want to take this or ping the right person?
> >
> > If tomorrow morning, nobody claimed this bug I will file a bug :-)
> > Thanks for fast response!
>
>
> I just posted this which fixes this problem: https://reviews.llvm.org/D69666

Matt, thanks for quick fixing!

>
> This is specifically with void typed pointers, if you use char* it works already
>
> -Matt


More information about the llvm-dev mailing list