Skip to content

Commit a30e5be

Browse files
author
Advenam Tacet
committed
Use LLVM_ADDRESS_SANITIZER_BUILD
1 parent 3de40ac commit a30e5be

File tree

1 file changed

+1
-1
lines changed
  • llvm/include/llvm/Support

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/JSON.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class Value {
482482
friend class Object;
483483

484484
template <typename T, typename... U> void create(U &&... V) {
485-
#if defined(ADDRESS_SANITIZER) || defined(__SANITIZE_ADDRESS__)
485+
#if defined(LLVM_ADDRESS_SANITIZER_BUILD)
486486
// Unpoisoning to prevent overwriting poisoned object (e.g., annotated short
487487
// string). Objects that have had their memory poisoned may cause an ASan
488488
// error if their memory is reused without calling their destructor.

0 commit comments

Comments
 (0)