Displaying 1 result from an estimated 1 matches for "llvmconstarray".
2016 Sep 08
2
PtrToInt in array initializer
Hello all,
I'm trying to use the C API to initialize a global integer array with
the address of another global, but ptrtoint yields an array instead of
an integer. You can see a short program demonstrating the issue here
(tested with LLVM 3.8.1 and 4.0.0svn-r280709 on Linux x86_64):
https://raw.githubusercontent.com/dobyrch/dbc/master/llvm_bug/example.c
Note that the use of ptrtoint in the