mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 00:03:14 +01:00
Fix logic to decide which new/delete operator to use.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user