[cfe-commits] r151131 - in /cfe/trunk: include/clang/AST/ lib/AST/ lib/CodeGen/ lib/Sema/ lib/Serialization/ lib/StaticAnalyzer/Core/ test/CXX/expr/expr.prim/expr.prim.lambda/ test/PCH/

John McCall rjmccall at apple.com
Tue Feb 21 22:54:17 PST 2012


On Feb 21, 2012, at 9:02 PM, Douglas Gregor wrote:
> Author: dgregor
> Date: Tue Feb 21 23:02:47 2012
> New Revision: 151131
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=151131&view=rev
> Log:
> Generate an AST for the conversion from a lambda closure type to a
> block pointer that returns a block literal which captures (by copy)
> the lambda closure itself. Some aspects of the block literal are left
> unspecified, namely the capture variable (which doesn't actually
> exist) and the body (which will be filled in by IRgen because it can't
> be written as an AST).
> 
> Because we're switching to this model, this patch also eliminates
> tracking the copy-initialization expression for the block capture of
> the conversion function, since that information is now embedded in the
> synthesized block literal. -1 side tables FTW.

This definitely seems like the better model.

John.



More information about the cfe-commits mailing list