These are primarily due to deferences to external globals arrays in the module. These arrays are probably defined elsewhere and linked together later.<br><br>Santosh<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Hi,<br>
<br>
I see many statements like the one following, with casts to a 0-sized<br>
array.<br>
 %10 = getelementptr inbounds [0 x %struct.Link]* bitcast ([497 x<br>
%struct.Link]* @link_array to [0 x %struct.Link]*), i64 0, i64 %9 ;<br>
<%struct.Link*> [#uses=1]<br>
<br>
Why does this happen, and which  transform causes this?<br>
<br>
Arushi<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20101111/1ebd6541/attachment-0001.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20101111/1ebd6541/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br></blockquote></div>-- <br>Santosh G Nagarakatte,<br>PhD Student,<br>Computer and Information Science Department<br>University of Pennsylvania,<br>Philadelphia-19104<br><a href="http://www.cis.upenn.edu/~santoshn">http://www.cis.upenn.edu/~santoshn</a><br>