commit | b06c8f07b24c63eac7a69153a47d12893fe7dd68 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Thu Mar 22 21:28:09 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Thu Mar 22 21:28:09 2018 +0000 |
tree | a338847e93ab9445c96b0aa4af300c6e3185e552 | |
parent | b7f27d421f98e10c4cc9f10b47ec100955c3aaa7 [diff] |
Use DoNotOptimize to prevent new/delete elision. The new/delete tests, in particular those which test replacement functions, often fail when the optimizer is enabled because the calls to new/delete may be optimized away, regardless of their side-effects. This patch converts the tests to use DoNotOptimize in order to prevent the elision. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328245 91177308-0d34-0410-b5e6-96231b3b80d8