[llvm-dev] PtrToInt in array initializer
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 9 00:53:32 PDT 2016
Hi Doug,
On 8 September 2016 at 18:37, Doug Christman via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Note that the use of ptrtoint in the array initializer causes all array
> elements to take on the type [2 x i64] instead of i64. If the output
> is manually edited to change the element types to i64, llc compiles it
> without error.
I think the problem is on the "LLVMConstArray" line. The first
argument is called "ElementTy" so it should probably just be TYPE_INT.
Cheers.
Tim.
More information about the llvm-dev
mailing list