Seems like bad behavior to just decide to delete the function, no? Why not just ignore it then and output the input?<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 2:43 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Feb 10, 2012 at 2:38 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>

> I have some code that has one function and if I use the-inline on it then<br>
> these opts eliminate the entire function (which is the entire file).<br>
><br>
> Bugpoint produces bugpoint-reduced-simplified.bc, but when I then run "opt<br>
> bugpoint-reduced-simplified.bc -inline" I get nothing, file get emptied.<br>
><br>
> It doesn't crash or assert. I have attached a test case.<br>
<br>
</div></div>Your function has internal linkage and no uses; therefore, your .ll<br>
file is equivalent to the empty .ll file.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>