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

Richard Smith richard at metafoo.co.uk
Thu Jul 31 18:43:02 PDT 2014


On Sun, Jul 27, 2014 at 4:13 AM, İsmail Dönmez <ismail at donmez.ws> wrote:

>
>
>
> 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.
>

I agree.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140731/79528c43/attachment.html>


More information about the cfe-commits mailing list