Fix logic to decide which new/delete operator to use.

This commit is contained in:
Kai Nacke
2013-12-02 10:05:50 +01:00
parent 1a36f9b394
commit 5e6f696b43

View File

@@ -139,12 +139,12 @@ void Mem::addroots(char* pStart, char* pEnd)
/* =================================================== */
#if defined(__has_feature)
#if !__has_feature(address_sanitizer)
#define DEFINE_NEW_DELETE
#if __has_feature(address_sanitizer)
#define USE_ASAN_NEW_DELETE
#endif
#endif
#if defined(DEFINE_NEW_DELETE)
#if !defined(USE_ASAN_NEW_DELETE)
#if IN_DMD