<div dir="ltr">On Wed, Jun 5, 2013 at 4:15 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">How is the change to TypeOfExprType::desugar related to the other changes?</div>
</blockquote><div><br></div><div style>I'll delete it.  I don't need it anymore.</div><div style><br></div><div style>At one point I was breaking this code in test/Sema/function-redecl.c:</div><div style><div>void *h0(unsigned a0,     ...);</div>
<div>extern __typeof (h0) h1 __attribute__((__sentinel__));</div><div>extern __typeof (h1) h1 __attribute__((__sentinel__));</div><div style><br></div><div style>Code in SemaExpr.cpp makes the __typeof(h1) expression become 'void (*)(...)'.</div>
<div style><br></div><div style>I changed something about the way I retreive the function type before adjusting parameters.  I don't remember what it was before, but now I'm using:</div><div style><div>  const FunctionType *FT = R->castAs<FunctionType>();</div>
<div><br></div><div style>I added a test for the case where I need to rebuild the type because one of the parameters needs to be adjusted and everything seems to work fine.</div></div><div style><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>+          // Get the type as written.  It will be adusted later in</div></div><div><br></div><div>*adjusted</div>
<div><br></div><div>Otherwise, it looks good.</div></div></blockquote><div><br></div><div style>Thanks!  Committing.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>-Eli<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 6:36 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
  Ping<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D883" target="_blank">http://llvm-reviews.chandlerc.com/D883</a><br>
_______________________________________________<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/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>