Can you include the code that causes the failure?<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 4:40 AM, George Baah <span dir="ltr"><<a href="mailto:georgebaah@gmail.com" target="_blank">georgebaah@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<div>  When I compile a program with clang with debug symbols enabled and I try to run it using the JIT (lli) I get the </div>
<div>following error message. I am running on Lion (10.7.4). Thanks.</div><div><br></div>
<div>George</div><div><br></div><div>>></div><div><div>pseudo instructions should be removed before code emission</div><div>UNREACHABLE executed at /Users/JD/Software/llvm3.1/llvm-3.1.src/lib/Target/X86/X86CodeEmitter.cpp:736!</div>

<div>0  lli               0x0000000103518b6e _ZL15PrintStackTracePv + 46</div><div>1  lli               0x0000000103519119 _ZL13SignalHandleri + 297</div><div>2  libsystem_c.dylib 0x00007fff93630cfa _sigtramp + 26</div><div>

3  libsystem_c.dylib 0x0000000000000001 _sigtramp + 18446603338043421473</div><div>4  lli               0x0000000103518e3b raise + 27</div><div>5  lli               0x0000000103518ef2 abort + 18</div><div>6  lli               0x0000000103500cf6 llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) + 198</div>

<div>7  lli               0x0000000102afb170 (anonymous namespace)::Emitter<llvm::JITCodeEmitter>::emitInstruction(llvm::MachineInstr&, llvm::MCInstrDesc const*) + 3408</div><div>8  lli               0x0000000102afa351 (anonymous namespace)::Emitter<llvm::JITCodeEmitter>::runOnMachineFunction(llvm::MachineFunction&) + 577</div>

<div>9  lli               0x0000000102fb953e llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110</div><div>10 lli               0x0000000103481d9d llvm::FPPassManager::runOnFunction(llvm::Function&) + 445</div>

<div>11 lli               0x00000001034815d1 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 129</div><div>12 lli               0x0000000103481542 llvm::FunctionPassManager::run(llvm::Function&) + 162</div>
<div>
13 lli               0x0000000102ebb2cf llvm::JIT::jitTheFunction(llvm::Function*, llvm::MutexGuard const&) + 63</div><div>14 lli               0x0000000102ebb17a llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) + 122</div>

<div>15 lli               0x0000000102ebb5b7 llvm::JIT::getPointerToFunction(llvm::Function*) + 695</div><div>16 lli               0x0000000102eb9bfb llvm::JIT::runFunction(llvm::Function*, std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&) + 171</div>

<div>17 lli               0x00000001032a39f6 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::vector<std::string, std::allocator<std::string> > const&, char const* const*) + 1126</div><div>18 lli               0x0000000102a7a123 main + 2915</div>

<div>19 lli               0x0000000102a79534 start + 52</div><div>Stack dump:</div><div>0.<span style="white-space:pre-wrap">     </span>Program arguments: lli test.bc </div><div>1.<span style="white-space:pre-wrap">        </span>Running pass 'X86 Machine Code Emitter' on function '@main'</div>

<div>Illegal instruction: 4</div></div><div><br></div><div><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>~Craig<br>