[LLVMdev] Generating incorrect bitcode file

Pranav Garg pranav.garg2107 at gmail.com
Thu Apr 15 23:11:10 PDT 2010


I am generating the .bc file using the following command

$ llvm-gcc -emit-llvm -S -o pointer.bc ../../../test/pointer.c

But when I run any pass using opt it gives the following error :
$ ./opt -basicaa pointer.bc
./opt: Bitcode stream should be a multiple of 4 bytes in length

Is there something wrong with the way I generate the .bc file  ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100416/0e0bc371/attachment.html>

More information about the llvm-dev mailing list