<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 22, 2010, at 8:42 AM, Anders Carlsson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>22 jan 2010 kl. 07.08 skrev Douglas Gregor:</div><blockquote type="cite"><div><font class="Apple-style-span"><br></font>I find this code a bit strange... why is it mapping down to the canonical type then using dyn_cast? It would be simpler just to keep the original source types and use getAs<> rather than dyn_cast. Then we'll get better typedef information in the diagnostics, and I won't have to panic every time I see dyn_cast<> on types.<br><br></div></blockquote><div><br></div>Yeah, that was just a premature optimization done by me :) I'll fix it.</div></div></blockquote></div><br><div>Thanks!</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Doug</div></body></html>