[LLVMdev] LLVM ERROR : Invalid instruction

Abhinash Jain omnia at mailinator.com
Fri Jul 26 13:49:25 PDT 2013


#include <string>
#include <string.h>
#include <iostream>
#include <stdio.h>
using namespace std;

void foo(string str)
{
}
int main()
{
string str="aa";
foo(str);
return 0;
}

1. clang++ -c -emit-llvm foo.cpp -o foo.ll
2. llc -march=cpp -o foo.ll.cpp foo.ll   (at the execution of this command
its giving an error as "Invalid Instruction")

May I know why is it failing on step 2. ???



--
View this message in context: http://llvm.1065342.n5.nabble.com/LLVM-ERROR-Invalid-instruction-tp59856.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.



More information about the llvm-dev mailing list