[cfe-commits] [PATCH] Fix PR14514: Call destructor automatically after a throw

John McCall rjmccall at apple.com
Mon Dec 17 17:19:48 PST 2012


On Dec 17, 2012, at 5:17 PM, WenHan Gu (谷汶翰) <wenhan.gu at mediatek.com> wrote:
> Actually, I have thought this assertion issue before modifying it.
> However, I think, checking destruct-able in one callee is much simple and clear than checking it in *all* caller, right?
>  
> If this has some design consideration, please let me know.

Pushing a cleanup affects the emission of code and should not be done when unnecessary.

John.



More information about the cfe-commits mailing list