<div dir="ltr">I can confirm that the issue has been caused by NDEBUG flag. <div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 13, 2015 at 6:29 PM Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The layout of AssertingVH has depended on NDEBUG since 2009, which predates any of our efforts to make LLVM's ABI resilient to mismatched NDEBUG definitions between LLVM and its users.<div><br></div><div>For now, make sure your definition of NDEBUG matches LLVM's. In the long run, we could conceivably do something with LLVM_ENABLE_ABI_BREAKING_CHECKS to allow this mismatch.</div></div></blockquote><div><br></div><div>In practice it is very hard to make NDEBUG flag match configs of your project and LLVM project. You often need to build debug and release versions of your project and LLVM is installed as a debian package or with homebrew. Moreover, there is not reliable way of checking if LLVM has been built with or without NDEBUG.</div><div><br></div><div>Can I do anything more about it? Contributions related to  LLVM_ENABLE_ABI_BREAKING_CHECKS needed?</div><div><br></div><div>- Paweł</div></div></div></div>