hanchenye-llvm-project/clang/test
Alexey Bataev 16dc7b68c4 Fix for aggregate copying of variable length arrays.
Patch fixes codegen for aggregate copying of VLAs. Currently method CodeGenFunction::EmitAggregateCopy() does not support copying of VLAs. Patch checks if the size of the type is 0, then checks if the type is actually a variable-length array. Then it calculates total length for this array and calculates total size of the array in bytes:

<total number of elements in array> * aligned_sizeof(ElementType) (if copy assignment is requested).
If simple copying is requested, size is calculated like:

<total number of elements in array> * aligned_sizeof(ElementType) - aligned_sizeof(ElementType) + sizeof(ElementType).
memcpy() is used with this calculated size of the VLA.
Differential Revision: http://reviews.llvm.org/D9851

llvm-svn: 237768
2015-05-20 03:46:04 +00:00
..
ARCMT [Objective-C SDK modernizer]. Patch to convert setter/getter 2015-04-02 21:36:03 +00:00
ASTMerge XFAIL Hexagon until more codegen in place. 2015-04-29 22:54:40 +00:00
Analysis Detect uses of mismatching forms of 'new' and 'delete' 2015-05-18 19:59:11 +00:00
CXX PR20073: promote "dereference of 'void*'" from Extension to ExtWarn. 2015-05-19 01:41:12 +00:00
CodeCompletion
CodeGen [X86] Add _mm_broadcastsd_pd intrinsic 2015-05-19 14:49:14 +00:00
CodeGenCUDA [cuda] Fixed test case failure on s390x 2015-05-11 18:35:58 +00:00
CodeGenCXX Revert changes to DefaultABIInfo accidentally introduced in r208733 2015-05-18 22:46:30 +00:00
CodeGenObjC Implement no_sanitize attribute. 2015-05-15 18:33:32 +00:00
CodeGenObjCXX Changed renaming of local symbols by inserting a dot vefore the numeric suffix 2015-05-12 16:48:43 +00:00
CodeGenOpenCL clang/test/CodeGenOpenCL/opencl_types.cl: Tweak expressions according to r237548. 2015-05-18 03:58:27 +00:00
Coverage
CoverageMapping InstrProf: Only disable coverage in built-in macros, not all system macros 2015-05-14 22:14:10 +00:00
Driver [clang-cl] Enable C++14 when targeting 2015 compatibility 2015-05-18 04:49:30 +00:00
FixIt Move fixit for const init from note to diag, weaken to warning in MS mode. 2015-04-17 08:32:38 +00:00
Format Reapply r236854 and fixed r236867. 2015-05-10 07:47:19 +00:00
Frontend Don't leak TemplateIds when a plugin parses late-parsed templates at TU end. 2015-05-17 01:07:16 +00:00
Headers [PPC64] Add vector pack/unpack support from ISA 2.07 2015-05-16 01:02:25 +00:00
Index [modules] Move implicit creation of ImportDecls for #includes transformed into module imports from the frontend into Sema where it belongs. 2015-05-18 05:35:52 +00:00
Integration
Layout PR6037 2015-01-19 01:44:02 +00:00
Lexer Have '__have_extension(cxx_variadic_templates)' return true for any C++ standard. 2015-05-12 22:37:23 +00:00
Misc Fix typo from r237482. "to reference of type" --> "to reference to type" 2015-05-16 01:39:39 +00:00
Modules Revert r237609 for now. 2015-05-19 19:58:11 +00:00
OpenMP Fix for aggregate copying of variable length arrays. 2015-05-20 03:46:04 +00:00
PCH Add the test case from PR 14044 to ensure it doesn't regress. 2015-05-08 17:39:48 +00:00
Parser Add a new error for unexpected semi-colon before closing delimiter. 2015-05-12 21:36:35 +00:00
Preprocessor Testing for the fix for bug 23429. 2015-05-14 20:02:24 +00:00
Profile InstrProf: Update name of compiler-rt routine for setting filename 2015-05-12 21:23:16 +00:00
Rewriter [Objective-C modern translation]. Patch to fix type of 2015-04-09 18:36:50 +00:00
Sema Eagerly correct typos in ParenExprs that may be type casts for non-C++ code. 2015-05-01 19:36:25 +00:00
SemaCUDA [cuda] Preserve TLS storage class of host variable even if it's a 2015-04-28 20:31:49 +00:00
SemaCXX PR20073: promote "dereference of 'void*'" from Extension to ExtWarn. 2015-05-19 01:41:12 +00:00
SemaObjC Tweak availability checking to look through typedef declarations. 2015-05-14 22:07:25 +00:00
SemaObjCXX [Objective-C Sema] Fixes a typo which did not allow 2015-04-10 22:07:47 +00:00
SemaOpenCL Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
SemaTemplate Limit set of types instantiated in FindInstantiatedDecl. 2015-05-15 10:10:28 +00:00
TableGen
Tooling
Unit
VFS DebugInfo: Metadata constructs now start with DI* 2015-04-29 16:40:08 +00:00
.clang-format
CMakeLists.txt Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-25 02:44:04 +00:00
Makefile
TestRunner.sh
cxx-sections.data
lit.cfg Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
lit.site.cfg.in Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
make_test_dirs.pl