The dump from the function I'm running:<div><br></div><div><div>define %object_structure @0() {</div><div>entry:</div><div>  ret %object_structure { i8 0, %object_union [double 5.000000e+00, double false] }</div><div>}</div>

<div><br></div><div>the only output I get after the runFunction() call is:</div><div><br></div><div><div>UNREACHABLE executed!</div><div>Stack dump:</div><div>0.<span class="Apple-tab-span" style="white-space:pre">    </span>Running pass 'X86 DAG->DAG Instruction Selection' on function '@0'</div>

</div><div><br></div><div>I just noticed that my union seems to look like an array....is that actually a union or do I have a problem somewhere? The code I use to generate the union is:</div><div><br></div><div><div>llvm::Constant* tempUnion = llvm::ConstantUnion::get(object_union_type,llvm::Constant::getNullValue(types[t]));                                                                                                               </div>

<div>llvm::Value* goodUnion = builder.CreateInsertValue(tempUnion,data,t,"createuniontmp");</div></div><div><br></div><div>object_union_type is union { double, i1 }, and (in this case) t is 0, and types[t] is double</div>

<div><br></div><div><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 4:13 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com">echristo@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
On Aug 15, 2010, at 1:06 PM, Alec Benzer wrote:<br>
<br>
> What does this error mean? I'm getting it from an ExecutionEngine::runFunction() call. The function I'm passing it was run through verifyFunction() right before the runFunction() call. I can't seem to find anything that tells me what causes this, only specific (but seemingly unrelated to my problem) cases of it happening.<br>


<br>
</div>Which unreachable was it?  The basic idea is that whichever section of code gives that assertion shouldn't be executing.<br>
<br>
Also, what was the .ll code that gave the assertion?<br>
<font color="#888888"><br>
-eric</font></blockquote></div><br></div></div>