[PATCH] D54581: [compiler-rt] Windows Debug build fix

Matthew G McGovern via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 15 09:10:15 PST 2018


mcgov updated this revision to Diff 174224.
mcgov added a comment.

fixed nonportable #ifdef condition


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 defined(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.174224.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181115/f0c8259b/attachment.bin>


More information about the llvm-commits mailing list