commit | a28eda7e401f37a2fe42ca9bba96b6e662b60cf0 | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Wed Feb 20 00:26:04 2013 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Wed Feb 20 00:26:04 2013 +0000 |
tree | 3280d2d2f26755931bfe557d97034f8a16b1b3a8 | |
parent | 9bc2c994827f2ff881d0563f0c14134b794b4928 [diff] |
Allow llvm::Optional to work with types without default constructors. This generalizes Optional to require less from the T type by using aligned storage for backing & placement new/deleting the T into it when necessary. Also includes unit tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175580 91177308-0d34-0410-b5e6-96231b3b80d8