Skip to content

Commit 9072fba

Browse files
author
Advenam Tacet
committed
Fix based on code review
This commit: - adds #include "llvm/Support/Compiler.h" - fixes incorrect use of LLVM_ADDRESS_SANITIZER_BUILD
1 parent 4d19c7e commit 9072fba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/ADT/FunctionExtras.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "llvm/ADT/PointerIntPair.h"
3636
#include "llvm/ADT/PointerUnion.h"
3737
#include "llvm/ADT/STLForwardCompat.h"
38+
#include "llvm/Support/Compiler.h"
3839
#include "llvm/Support/MemAlloc.h"
3940
#include "llvm/Support/type_traits.h"
4041
#include <cstring>
@@ -317,7 +318,7 @@ template <typename ReturnT, typename... ParamTs> class UniqueFunctionBase {
317318
// Clear the old callback and inline flag to get back to as-if-null.
318319
RHS.CallbackAndInlineFlag = {};
319320

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

0 commit comments

Comments
 (0)