[LLVMdev] LLVM ERROR: Invalid primitive type.. Is this a bug?

Guoliang Jin jingl1345 at gmail.com
Wed Jul 28 22:57:43 PDT 2010


  Hi,

I have:
int main()
{
   int i = 1;
}
in test.c.

Then:
llvm-gcc -emit-llvm -O0 -c test.c -o test.bc -g
llc -march=cpp test.bc
gives me:
LLVM ERROR: Invalid primitive type

This only happens when I use the "-g". Is this a bug?

Thanks,
Guoliang



More information about the llvm-dev mailing list