[LLVMdev] Invalid getelementptr indices?

Ryan Taylor ryta1203 at gmail.com
Thu Jan 26 12:13:47 PST 2012


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?

opt: myFunction.bc:3:31: error: invalid getelementptr indices
  %0 = getelementptr inbounds %struct.MyFunction_Scratch_s* %scratch, i32
0, i32 4, i32 %stage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120126/06532e7e/attachment.html>


More information about the llvm-dev mailing list