diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2019-09-24 08:27:51 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2019-09-24 08:27:51 +0000 |
commit | b5c751dcf99002b7cecdc1975ac107dc4fdef652 (patch) | |
tree | ea39e115c6fb1c6282ac05842edaec9d0b46f77e | |
parent | fe62c81099a0b246783b8f1d1434219a5fdc08e6 (diff) | |
download | compiler-rt-b5c751dcf99002b7cecdc1975ac107dc4fdef652.tar.gz |
sanitizer_common: fix freebsd build error
Variable flags is not used. Remove it.
Suggested-by: randall77 (Keith Randall)
Review: https://reviews.llvm.org/D67928
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@372698 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_posix_libcdep.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_posix_libcdep.cpp b/lib/sanitizer_common/sanitizer_posix_libcdep.cpp index 69919ae74..304b3a01a 100644 --- a/lib/sanitizer_common/sanitizer_posix_libcdep.cpp +++ b/lib/sanitizer_common/sanitizer_posix_libcdep.cpp @@ -328,7 +328,6 @@ bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name) { #if SANITIZER_FREEBSD - int flags = 0; if (common_flags()->no_huge_pages_for_shadow) return MmapFixedNoReserve(fixed_addr, size, name); // MAP_NORESERVE is implicit with FreeBSD |