[PATCH] CodeGen for CapturedStmt

Ben Langmuir ben.langmuir at intel.com
Tue Apr 30 11:31:06 PDT 2013


  Updates per review

  Move some code into GenerateCapturedStmtFunction, and remove 'ThisValue'
  from CGCapturedStmtInfo, which was confusing, since we already have
  'this' in C++.

  Added tests for captured statements in a block (and vice-versa), as well
  as a captured statement in a captured statement.  Disallowed capturing
  __block variables in a captured statement, since we don't handle that in
  codegen.

Hi rjmccall, ABataev, gribozavr, doug.gregor,

http://llvm-reviews.chandlerc.com/D640

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D640?vs=1548&id=1788#toc

Files:
  include/clang/AST/GlobalDecl.h
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/ItaniumMangle.cpp
  lib/AST/MicrosoftMangle.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGStmt.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/Sema/SemaExpr.cpp
  test/CodeGen/captured-statements-nested.c
  test/CodeGen/captured-statements.c
  test/CodeGenCXX/captured-statements.cpp
  test/Sema/captured-statements.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D640.2.patch
Type: text/x-patch
Size: 22660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130430/493fc235/attachment.bin>


More information about the cfe-commits mailing list