<div dir="ltr">Hi,<div><br></div><div>I'm experiencing a weird problem with llvm 3.7(rc2/rc3) that did not occur in llvm 3.6.2</div><div>I created a bug for it: <a href="https://llvm.org/bugs/show_bug.cgi?id=24521">https://llvm.org/bugs/show_bug.cgi?id=24521</a></div><div><br></div><div><div>I'm building a app where multiple code gen can happen in parallel. The documentation state that I need to use separate context. Each thread has it's own context.</div><div><br></div><div>When code generating a constant number I use the *InContext() calls to create the types. The assert fails since the optimizer replaces some numbers with a global type. The values are equal but the types are not. I did patch some calls to compare on getTypeID() but got another assert a couple of days later in another source file.</div></div><div><br></div><div>I needed 3.7 because of the LLVMAddGlobalMapping C api fixes. </div><div>Could someone help me out ? Or point me in the right direction? I'm using the C api.</div></div>