<font color='black' size='2' face='arial'>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">
<div id="AOLMsgPart_2_f23f1e53-362b-4919-ba0b-61d8165fa7dc">
<font color="black" size="2" face="arial"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><br>
<span class="Apple-style-span" style="font-size: small;">></span>> I can cross-compile LLVM-2.5 to ARM and run lli on a simulator in debug <br>
<span class="Apple-style-span" style="font-size: small;">></span>> mode . However, when I now compile with optimization enabled, lli <br>
<span class="Apple-style-span" style="font-size: small;">></span>> triggers an assertion when loading bitcode files. The assertion looks <br>
<span class="Apple-style-span" style="font-size: small;">></span>> like this : <br>
<br>
<span class="Apple-style-span" style="font-size: small;">></span>are you not able to use a more recent version of LLVM like LLVM-2.7? <br>
<br>
<br>
</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-size: small;">I tried out LLVM-2.7. It also triggers an </span> assertion. This time it is :</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-size: small; "><br>
</span></div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-size: small; ">
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">lli: /home/Virement/llvm/llvm-2.7/lib/VMCore/Value.cpp:394: void llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**): Assertion `VP == Next->VP && "Added to wrong list?"' failed.</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">0 lli 0x00658c30</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">Stack dump:</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">0. Program arguments: /arm-linux-llvm-2.7/bin/lli -march=arm /twofuncs.bc </div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">Aborted</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); "><br>
</div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(255, 255, 255); ">Thanks</div>
<div><br>
</div>
</span></div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-size: small; "><br>
</span></div>
<div id="AOLMsgPart_8_d2cb3e2e-6feb-4d95-9f2a-eec9d044c693" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-size: small; "><br>
</span></div>
</span>
<div style="clear:both"></div>
</font>
</div>
<!-- end of AOLMsgPart_2_f23f1e53-362b-4919-ba0b-61d8165fa7dc -->
</div>
</font>