[LLVMdev] LLVM ERROR : Invalid instruction

Jim Grosbach grosbach at apple.com
Fri Jul 26 14:50:33 PDT 2013


Looks like the CPP backend doesn’t know how to deal with exception handling. It’s complaining that it can’t handle a landingpad instruction.

-Jim

On Jul 26, 2013, at 1:49 PM, Abhinash Jain <omnia at mailinator.com> wrote:

> #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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

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


More information about the llvm-dev mailing list