[PATCH] D54581: [compiler-rt] Windows Debug build fix
Matthew G McGovern via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 16 09:35:00 PST 2018
mcgov updated this revision to Diff 174386.
mcgov added a comment.
Updating to follow convention for SANITIZER_WINDOWS and DEBUG checks.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D54581
Files:
lib/asan/asan_new_delete.cc
Index: lib/asan/asan_new_delete.cc
===================================================================
--- lib/asan/asan_new_delete.cc
+++ lib/asan/asan_new_delete.cc
@@ -70,8 +70,8 @@
} // namespace std
//quick fix for debug windows builds.
-#ifdef SANITIZER_WINDOWS && DEBUG
- #define MemalignFromLocalPool(x,y) nullptr
+#if SANITIZER_WINDOWS && defined(DEBUG)
+#define MemalignFromLocalPool(x,y) nullptr
#endif
// TODO(alekseyshl): throw std::bad_alloc instead of dying on OOM.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54581.174386.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181116/1ea61dcb/attachment.bin>
More information about the llvm-commits
mailing list