[PATCH] D18196: [CodeGen] Emit lifetime.end intrinsic after destructor call in landing pad

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 15:03:03 PDT 2016


rnk added a comment.

In http://reviews.llvm.org/D18196#376837, @ahatanak wrote:

> I can add another RUN line to test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp that is identical to the existing RUN line except that it has "-O3 -disable-llvm-optzns". I confirmed that the test still passes without any changes to the test itself.
>
> Is that what you are looking for?


I assumed the test wouldn't pass with those flags, but yes, that works. Could you add the obvious CHECK lines for a simple cleanup though? There should be an invoke, two cleanuppads, one calls the dtor, the other ends the lifetime, they chain to each other.


http://reviews.llvm.org/D18196





More information about the cfe-commits mailing list