Skip to content

Commit 4d19c7e

Browse files
author
Advenam Tacet
committed
Use LLVM_ADDRESS_SANITIZER_BUILD
1 parent 97c4c59 commit 4d19c7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/ADT/FunctionExtras.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ template <typename ReturnT, typename... ParamTs> class UniqueFunctionBase {
317317
// Clear the old callback and inline flag to get back to as-if-null.
318318
RHS.CallbackAndInlineFlag = {};
319319

320-
#if !defined(NDEBUG) && \
321-
!(defined(ADDRESS_SANITIZER) || defined(__SANITIZE_ADDRESS__))
320+
#if !defined(NDEBUG) && !defined(LLVM_ADDRESS_SANITIZER_BUILD)
322321
// In debug builds without ASan, we also scribble across the rest of the
323322
// storage. AddressSanitizer (ASAN) disables scribbling to prevent
324323
// overwriting poisoned objects (e.g., annotated short strings).

0 commit comments

Comments
 (0)