Nevermind, thanks.<br><br><div class="gmail_quote">On Fri, Jan 27, 2012 at 1:32 PM, Ryan Taylor <span dir="ltr"><<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have done a clean checkout of llvm, polly and clang (via directions from polly website). Everything built and installed.<br><br>Does clang not compile without a "main" function?<div class="HOEnZb"><div class="h5">
<br><br><br><div class="gmail_quote">
On Thu, Jan 26, 2012 at 12:29 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><br>
On Jan 26, 2012, at 12:13 PM, Ryan Taylor wrote:<br>
<br>
> I am getting an "Invalid getelementptr indices" when running some IR code that has been succesfully compiled and output by llvm-gcc. The "opt" doesn't like it even though it's output produced by llvm-gcc. Anyone know what could be causing this?<br>


><br>
> opt: myFunction.bc:3:31: error: invalid getelementptr indices<br>
>   %0 = getelementptr inbounds %struct.MyFunction_Scratch_s* %scratch, i32 0, i32 4, i32 %stage<br>
<br>
</div></div>Hi Ryan,<br>
<br>
It's impossible to tell without more information, but llvm-gcc is long dead and isn't supported anymore.  Please upgrade to clang.<br>
<span><font color="#888888"><br>
-Chris<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>