teak-llvm/clang/lib/Serialization
Akira Hatanaka 2e00b98027 Distinguish __block variables that are captured by escaping blocks
from those that aren't.

This patch changes the way __block variables that aren't captured by
escaping blocks are handled:

- Since non-escaping blocks on the stack never get copied to the heap
  (see https://reviews.llvm.org/D49303), Sema shouldn't error out when
  the type of a non-escaping __block variable doesn't have an accessible
  copy constructor.

- IRGen doesn't have to use the specialized byref structure (see
  https://clang.llvm.org/docs/Block-ABI-Apple.html#id8) for a
  non-escaping __block variable anymore. Instead IRGen can emit the
  variable as a normal variable and copy the reference to the block
  literal. Byref copy/dispose helpers aren't needed either.

rdar://problem/39352313

Differential Revision: https://reviews.llvm.org/D51564

llvm-svn: 341754
2018-09-08 20:03:00 +00:00
..
ASTCommon.cpp PR33924: merge local declarations that have linkage of some kind within 2018-07-04 02:25:38 +00:00
ASTCommon.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
ASTReader.cpp Model type attributes as regular Attrs. 2018-08-20 21:47:29 +00:00
ASTReaderDecl.cpp Distinguish __block variables that are captured by escaping blocks 2018-09-08 20:03:00 +00:00
ASTReaderInternals.h Remove trailing space 2018-07-30 19:24:48 +00:00
ASTReaderStmt.cpp [OPENMP] Fix emission of the loop doacross constructs. 2018-08-13 19:04:24 +00:00
ASTWriter.cpp Model type attributes as regular Attrs. 2018-08-20 21:47:29 +00:00
ASTWriterDecl.cpp Distinguish __block variables that are captured by escaping blocks 2018-09-08 20:03:00 +00:00
ASTWriterStmt.cpp [OPENMP] Fix emission of the loop doacross constructs. 2018-08-13 19:04:24 +00:00
CMakeLists.txt
GeneratePCH.cpp Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
GlobalModuleIndex.cpp Support: Simplify endian stream interface. NFCI. 2018-05-18 19:46:24 +00:00
Module.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ModuleFileExtension.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ModuleManager.cpp Close FileEntries of cached files in ModuleManager::addModule(). 2018-08-20 17:10:27 +00:00
MultiOnDiskHashTable.h Support: Simplify endian stream interface. NFCI. 2018-05-18 19:46:24 +00:00