[compiler-rt] efad56b - Remove unused variables, as suggested by @mcgov.
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 12:10:09 PST 2019
Author: Alexandre Ganea
Date: 2019-11-04T14:55:51-05:00
New Revision: efad56b2be9b9f7d5b62d1f06541192fa6b537ee
URL: https://github.com/llvm/llvm-project/commit/efad56b2be9b9f7d5b62d1f06541192fa6b537ee
DIFF: https://github.com/llvm/llvm-project/commit/efad56b2be9b9f7d5b62d1f06541192fa6b537ee.diff
LOG: Remove unused variables, as suggested by @mcgov.
Fixes warning: unused variable 'XXX' [-Wunused-const-variable]
Added:
Modified:
compiler-rt/lib/asan/asan_malloc_win.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_malloc_win.cpp b/compiler-rt/lib/asan/asan_malloc_win.cpp
index 13c6f652119b..4b76d4ebd3eb 100644
--- a/compiler-rt/lib/asan/asan_malloc_win.cpp
+++ b/compiler-rt/lib/asan/asan_malloc_win.cpp
@@ -35,11 +35,8 @@ constexpr unsigned long HEAP_REALLOC_IN_PLACE_ONLY = 0x00000010;
constexpr unsigned long HEAP_ALLOCATE_SUPPORTED_FLAGS = (HEAP_ZERO_MEMORY);
constexpr unsigned long HEAP_ALLOCATE_UNSUPPORTED_FLAGS =
(~HEAP_ALLOCATE_SUPPORTED_FLAGS);
-constexpr unsigned long HEAP_FREE_SUPPORTED_FLAGS = (0);
constexpr unsigned long HEAP_FREE_UNSUPPORTED_FLAGS =
(~HEAP_ALLOCATE_SUPPORTED_FLAGS);
-constexpr unsigned long HEAP_REALLOC_SUPPORTED_FLAGS =
- (HEAP_REALLOC_IN_PLACE_ONLY | HEAP_ZERO_MEMORY);
constexpr unsigned long HEAP_REALLOC_UNSUPPORTED_FLAGS =
(~HEAP_ALLOCATE_SUPPORTED_FLAGS);
More information about the llvm-commits
mailing list