r214050 - When looking for temporary dtors while building the CFG, do not walk into

İsmail Dönmez ismail at donmez.ws
Sun Jul 27 04:13:34 PDT 2014


On Sun, Jul 27, 2014 at 8:12 AM, Richard Smith <richard-llvm at metafoo.co.uk>
wrote:

> Author: rsmith
> Date: Sun Jul 27 00:12:49 2014
> New Revision: 214050
>
> URL: http://llvm.org/viewvc/llvm-project?rev=214050&view=rev
> Log:
> When looking for temporary dtors while building the CFG, do not walk into
> lambda expressions (other than their capture initializers) nor blocks. Do
> walk
> into default argument expressions and default initializer expressions.
>
> These bugs were causing us to produce broken CFGs whenever a lambda
> expression
> was used to initialize a libstdc++ std::function object!
>
> Modified:
>     cfe/trunk/include/clang/AST/ExprCXX.h
>     cfe/trunk/lib/Analysis/CFG.cpp
>     cfe/trunk/test/SemaCXX/return-noreturn.cpp
>

I guess this should go in the 3.5 branch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140727/0655249f/attachment.html>


More information about the cfe-commits mailing list