[PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 03:23:38 PST 2015


klimek added a comment.

> I currently see the following ways forward:

> 

> 1. Extend this patch to cover also "throw", fixing case B)

> 2. Do 1) plus loop over the whole body to also fix case C)

> 3. Drop this patch and instead remove unreachable blocks after the whole CFG has been generated (by mark-and-sweep), fixing B), C) and D)


How would that work in a way that we don't lose the unreachable warnings that are actually correct?


http://reviews.llvm.org/D13973





More information about the cfe-commits mailing list