<div dir="ltr">For such internal errors, we are simply using cast<T> (or even unchecked dyn_cast<T> which is not a very safe practice), and I don't think we want to add a friendly assertion error message for each cast<T>, so it seems having friendly message only here is a bit weird. That being said, I'm ok to keep this if you still don't like it as this is not an important point.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 3:06 PM, Shankar Kalpathi Easwaran <span dir="ltr"><<a href="mailto:shankarke@gmail.com" target="_blank">shankarke@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  The cause could only be due to a bad reader, and could catch cases when the Reader creates bad references to atoms.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D3269" target="_blank">http://llvm-reviews.chandlerc.com/D3269</a><br>
</blockquote></div><br></div>