Skip to content

Commit 442bc63

Browse files
author
Advenam Tacet
committed
Fix use of LLVM_ADDRESS_SANITIZER_BUILD
This commit fixes incorrect use of `LLVM_ADDRESS_SANITIZER_BUILD` macro. Details here: #79066 (comment)
1 parent a30e5be commit 442bc63

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

llvm/include/llvm/Support/JSON.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "llvm/ADT/SmallVector.h"
5151
#include "llvm/ADT/StringRef.h"
5252
#include "llvm/ADT/STLFunctionalExtras.h"
53+
#include "llvm/Support/Compiler.h"
5354
#include "llvm/Support/Error.h"
5455
#include "llvm/Support/FormatVariadic.h"
5556
#include "llvm/Support/raw_ostream.h"
@@ -482,7 +483,7 @@ class Value {
482483
friend class Object;
483484

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

0 commit comments

Comments
 (0)