<div dir="ltr">On 24 November 2013 12:35, Mark Seaborn <span dir="ltr"><<a href="mailto:mseaborn@chromium.org" target="_blank">mseaborn@chromium.org</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">Fix inlining to not produce duplicate landingpad clauses<br>
<br>Before this change, inlining one "invoke" into outer "invoke" call<br>site can lead to the outer landingpad's catch/filter clauses being<br>
copied multiple times into the resulting landingpad.  This happens:<br><br> * when the inlined function contains multiple "resume" instructions,<br>   because forwardResume() copies the clauses but is called multiple<br>

   times;<br><br> * when the inlined function contains a "resume" and a "call", because<br>   HandleCallsInBlockInlinedThroughInvoke() copies the clauses but is<br>   redundant with forwardResume().<br>

<br>Fix this by deduplicating the code.<br><br>This problem doesn't lead to any incorrect execution; it's only<br>untidy.<br><br>This change will make fixing PR17872 a little easier.<br></div></blockquote><div><br>
</div><div>Ping.  Can someone review this change, please?  I am not really sure if this change is small enough to be committed without a pre-commit review (following <a href="http://llvm.org/docs/DeveloperPolicy.html#code-reviews">http://llvm.org/docs/DeveloperPolicy.html#code-reviews</a>), but I'd certainly prefer to have someone review it before committing.</div>
<div><br></div><div>Cheers,</div><div>Mark</div><div><br></div></div></div></div>