<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jean-Daniel, </div><br><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">Probably the types are not defined precisely the same in each module (maybe you<br>could send the exact definitions in each module to the mailing list?), <br></blockquote></div><div><br></div><div>In the module loaded in Step 1 (otherModule): </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>%struct.dispatch_group_s = type opaque</div><div>%union.dispatch_object_t = type { %struct.dispatch_object_s* }</div><div>%struct.dispatch_object_s = type opaque</div></blockquote><div><br></div><div>In the module generated in Step 2 (mainModule): </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>%struct.dispatch_group_s = type {}</div><div>%union.dispatch_object_t = type { %struct.dispatch_object_s* }</div><div>%struct.dispatch_object_s = type {}</div></blockquote><div><br></div><div>(The LLVM API calls to generate mainModule were generated by calling `llc -march=cpp` on otherModule.) </div><div><br></div></div></blockquote><div><br></div>Is there any chance one module was compiled in C mode and the other one in C++ mode ?</div><div><br></div><div>The dispatch_object declarations are not the same for both languages:</div></div></div></blockquote><br></div><div>Good question, but I don't think that's it. When otherModule is compiled as C++ code, the types are completely different: </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>%struct.dispatch_group_s = type { i8 }</div></div><div><div>%struct.dispatch_object_s = type { i8 }</div></div></blockquote><br><div>-Jaymie</div><div><br></div></body></html>