<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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.<div><br></div><div>-Jim</div><div><br><div><div>On Jul 26, 2013, at 1:49 PM, Abhinash Jain <<a href="mailto:omnia@mailinator.com">omnia@mailinator.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">#include <string><br>#include <string.h><br>#include <iostream><br>#include <stdio.h><br>using namespace std;<br><br>void foo(string str)<br>{<br>}<br>int main()<br>{<br>string str="aa";<br>foo(str);<br>return 0;<br>}<br><br>1. clang++ -c -emit-llvm foo.cpp -o foo.ll<br>2. llc -march=cpp -o foo.ll.cpp foo.ll   (at the execution of this command<br>its giving an error as "Invalid Instruction")<br><br>May I know why is it failing on step 2. ???<br><br><br><br>--<br>View this message in context:<span class="Apple-converted-space"> </span><a href="http://llvm.1065342.n5.nabble.com/LLVM-ERROR-Invalid-instruction-tp59856.html">http://llvm.1065342.n5.nabble.com/LLVM-ERROR-Invalid-instruction-tp59856.html</a><br>Sent from the LLVM - Dev mailing list archive at<span class="Apple-converted-space"> </span><a href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></div></body></html>