diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-04-15 12:41:52 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-04-15 12:41:52 +0000 |
commit | e865045ad1c5d8191097cda4bdd2e4cd634d1fa2 (patch) | |
tree | 17e11210829beeb04b33691a1197d5bfe51ea67c /lib/msan/msan_new_delete.cc | |
parent | 881b677c189e65872fd315a75a0e56f077339189 (diff) | |
download | compiler-rt-e865045ad1c5d8191097cda4bdd2e4cd634d1fa2.tar.gz |
[msan] Really disable replacement new and delete.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_new_delete.cc')
-rw-r--r-- | lib/msan/msan_new_delete.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/msan/msan_new_delete.cc b/lib/msan/msan_new_delete.cc index c4efe2ef7..88d4364f6 100644 --- a/lib/msan/msan_new_delete.cc +++ b/lib/msan/msan_new_delete.cc @@ -14,6 +14,8 @@ #include "msan.h" +#if MSAN_REPLACE_OPERATORS_NEW_AND_DELETE + #include <stddef.h> namespace __msan { @@ -49,3 +51,5 @@ void operator delete(void *ptr, std::nothrow_t const&) { OPERATOR_DELETE_BODY; } void operator delete[](void *ptr, std::nothrow_t const&) { OPERATOR_DELETE_BODY; } + +#endif // MSAN_REPLACE_OPERATORS_NEW_AND_DELETE |