Displaying 1 result from an estimated 1 matches for "inferaddressspacepass".
2019 Jun 21
2
Using store with operands in non-zero address space
Hello, LLVM devs.
I have the following IR:
%x = alloca i32, align 4
%p = alloca i32*, align 8
store i32* %x, i32** %p, align 8
Now I change module's data layout and run InferAddressSpacePass. This turns
that piece of code into
%x = alloca i32, align 4, addrspace(1)
%p = alloca i32*, align 8, addrspace(1)
store i32 addrspace(1)* %x, i32* addrspace(1)* %p, align 8
But Verifier complains that the module is invalid, saying
error: stored value and pointer type do not match
store i3...