[LLVMdev] Bitcast to [0 x Type]

Santosh Nagarakatte santosh.nagarakatte at gmail.com
Thu Nov 11 14:46:03 PST 2010


These are primarily due to deferences to external globals arrays in the
module. These arrays are probably defined elsewhere and linked together
later.

Santosh



> Hi,
>
> I see many statements like the one following, with casts to a 0-sized
> array.
>  %10 = getelementptr inbounds [0 x %struct.Link]* bitcast ([497 x
> %struct.Link]* @link_array to [0 x %struct.Link]*), i64 0, i64 %9 ;
> <%struct.Link*> [#uses=1]
>
> Why does this happen, and which  transform causes this?
>
> Arushi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20101111/1ebd6541/attachment-0001.html
>
> ------------------------------
>
> --
Santosh G Nagarakatte,
PhD Student,
Computer and Information Science Department
University of Pennsylvania,
Philadelphia-19104
http://www.cis.upenn.edu/~santoshn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101111/bb01cdde/attachment.html>


More information about the llvm-dev mailing list