commit | 6b8b8a113dced59ee98ed51b6f8118020dde8a30 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Tue Nov 13 19:16:19 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Tue Nov 13 19:16:19 2018 +0000 |
tree | ec6c1baeff7c5158fe2f85e5db84082a784ae272 | |
parent | 10180dc28f5abc2a80952ad53ddd9d27bc1927d9 [diff] |
Fix UB in string.bench.cpp. The usage of aligned_storage failed to pass the alignment it wanted, which caused it to have a larger size and alignment that the std::string's it was intended to store. This patch manually specifies the alignment, as well as cleaning up type alias bugs. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@346779 91177308-0d34-0410-b5e6-96231b3b80d8