[compiler-rt] r372698 - sanitizer_common: fix freebsd build error
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 01:27:52 PDT 2019
Author: dvyukov
Date: Tue Sep 24 01:27:51 2019
New Revision: 372698
URL: http://llvm.org/viewvc/llvm-project?rev=372698&view=rev
Log:
sanitizer_common: fix freebsd build error
Variable flags is not used. Remove it.
Suggested-by: randall77 (Keith Randall)
Review: https://reviews.llvm.org/D67928
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp?rev=372698&r1=372697&r2=372698&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp Tue Sep 24 01:27:51 2019
@@ -328,7 +328,6 @@ bool MmapFixedNoReserve(uptr fixed_addr,
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
More information about the llvm-commits
mailing list