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

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 31 09:08:19 PDT 2019

> 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

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


More information about the llvm-dev mailing list