rjmccall added a comment.

In D82999#2129031 <https://reviews.llvm.org/D82999#2129031>, @ahatanak wrote:

> After-full-expression cleanup looks fine to me. `pushCleanupAfterFullExpr` 
> sets the flags and saves the values when it's in a conditional branch.
>
> I think ideally we shouldn't have to clean up anything in the true expression 
> when the false expression throws, but I wasn't able to come up with an easy 
> way to make IRGen avoid that.


It's unavoidable; you can have code after the merge point that can throw, and 
you can only know dynamically which side you came from at that point.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82999/new/

https://reviews.llvm.org/D82999



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to