[PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt
Matthias Gehre via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 1 23:30:42 PST 2015
mgehre added a comment.
I see. Thinking about this, the same issue should also apply to a throw
inside the compound stmt. And it's not only about suppressing the dtors but
any CFG entries after return/throw. I'll prepare an updated patch.
Manuel Klimek <klimek at google.com> schrieb am So., 1. Nov. 2015 23:04:
> klimek added a reviewer: jordan_rose.
> klimek added a comment.
>
> +jordan for an opinion on whether we want to fix the more general case.
>
> My main problem is that while we're at it we need to fully understand the
> change anyway, and if somebody runs into this later, they'll need a long
> time debugging this surprising effect (like what happened to you here ;)
>
> http://reviews.llvm.org/D13973
http://reviews.llvm.org/D13973
More information about the cfe-commits
mailing list