<div dir="ltr"><div>     case EXPR_BINARY_TYPE_TRAIT:</div><div>-      S = new (Context) BinaryTypeTraitExpr(Empty);</div><div>+      llvm_unreachable("obsolete");</div><div>       break;</div><div><br></div><div>
Please just remove this, and EXPR_BINARY_TYPE_TRAIT.</div><div><br></div><div><br></div><div>I don't really like having BTT_* and TT_* in the same enum, with default: clauses appearing in various switches. Are you planning on folding the trait-handling code together more (and dropping the 'B')? If so, looks fine as a step towards that.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 6:58 AM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Forgot to mention, this is built on top of the MSVC 2013 type trait support patch which has yet to land. Delta should be small though.<br>
<br>
Alp.<div><div class="h5"><br>
<br>
On 13/12/2013 14:56, Alp Toker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There's nothing special about type traits accepting two arguments.<br>
<br>
The attached patch eliminates BinaryTypeTraitExpr and switches all related handling over to TypeTraitExpr.<br>
<br>
Also fixes a CodeGen failure with variadic type traits appearing in a non-constant expression.<br>
<br>
The BTT/TT prefix distinction is retained for the time being.<br>
<br>
This is part of the ongoing work to unify type traits.<br>
<br>
 26 files changed, 62 insertions(+), 289 deletions(-)<br>
<br>
Alp.<br>
<br>
</blockquote>
<br>
-- <br>
<a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
the browser experts<br>
<br></div></div>
______________________________<u></u>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>