<div dir="ltr">Named structure types are no longer merged, though they used to be.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 4:41 AM, edA-qa mort-ora-y <span dir="ltr"><<a href="mailto:eda-qa@disemia.com" target="_blank">eda-qa@disemia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm getting frustrated by assertions whenever I create a store inst (via<br>
builder CreateStore). I get the error "Ptr must be a pointer to Val<br>
type!" My destination is a pointer to an equivalent to the source type.<br>
The problem is that the types were created via different generation<br>
paths and the underlying structure is a distinct object (with the exact<br>
same fields).<br>
<br>
I seem to recall that IR actually merges equivalent types, so I'm always<br>
confused about this error. My type manager already has lots of extra<br>
code just trying to merge types, but I seem to have missed one. If the<br>
assert were removed would the code actually work? Could the assert<br>
perhaps do a more logical check of equivalence?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
edA-qa mort-ora-y<br>
Leaf Creator<br>
<br>
Leaf - the language we always wanted<br>
<a href="http://leaflang.org/" target="_blank">http://leaflang.org/</a><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>
</font></span></blockquote></div><br></div>