summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/value-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add missing newlines at end of file.Chris Lattner2010-12-211-1/+1
| | | | llvm-svn: 122309
* fix PR8726 by teaching the aggregate init optimization code to handle Chris Lattner2010-12-021-0/+13
| | | | | | structs with references in them correctly. llvm-svn: 120722
* Preserve the zero-initialization and construction-kind settings whenDouglas Gregor2010-08-221-0/+26
| | | | | | instantiating CXXConstructExpr expressions. llvm-svn: 111780
* When performing value-initialization for a class with a non-trivial,Douglas Gregor2010-08-221-0/+18
| | | | | | | | | | | | implicitly-defined default constructor, zero-initialize the memory before calling the default constructor. Previously, we would only zero-initialize in the case of a trivial default constructor. Also, simplify the hideous logic that determines when we have a trivial default constructor and, therefore, don't need to emit any call at all. llvm-svn: 111779
* Fix a major regression with value-initialization of class types withDouglas Gregor2010-08-201-0/+27
| | | | | | | | trivial default constructors. We're weren't zero-initializing them, which manifested as <rdar://problem/8320532> (a regression in the GCC test suite) and is likely to have caused significant other breakage. llvm-svn: 111650
* Inline a special case of EmitAggregateCopy into EmitNullInitializationJohn McCall2010-08-071-0/+18
| | | | | | | | | to avoid the awesome-but-wrong-in-this-case assertion in the canon EAC. Fixes PR7834. Also fix a subtle address-space bug in the memset path. llvm-svn: 110511
* When explicitly building a temporary object (CXXTemporaryObjectExpr),Douglas Gregor2010-04-271-0/+26
| | | | | | | | | | | keep track of whether we need to zero-initialize storage prior to calling its constructor. Previously, we were only tracking this when implicitly constructing the object (a CXXConstructExpr). Fixes Boost's value-initialization tests, which means that the Boost.Config library now passes all of its tests. llvm-svn: 102461
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-041-1/+1
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100305
* Revert r100193 since it causes failures in objc in clangMon P Wang2010-04-021-1/+1
| | | | llvm-svn: 100200
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-021-1/+1
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100193
* Revert Mon Ping's 99930 due to broken llvm-gcc buildbots.Bob Wilson2010-03-301-1/+1
| | | | llvm-svn: 99949
* Added support for address spaces and added a isVolatile field to memcpy, ↵Mon P Wang2010-03-301-1/+1
| | | | | | memmove, and memset llvm-svn: 99930
* Fix test case to unbreak testingDouglas Gregor2009-12-161-2/+2
| | | | llvm-svn: 91551
* When value-initializing a class with no user-defined constructors butDouglas Gregor2009-12-161-0/+25
with a non-trivial default constructor, zero-initialize the storage and then call the default constructor. Fixes PR5800. llvm-svn: 91548
OpenPOWER on IntegriCloud