[compiler-rt] r308992 - Fix unused variable warning with MemoryMappedSegment private data
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 10:28:42 PDT 2017
Author: fjricci
Date: Tue Jul 25 10:28:41 2017
New Revision: 308992
URL: http://llvm.org/viewvc/llvm-project?rev=308992&view=rev
Log:
Fix unused variable warning with MemoryMappedSegment private data
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_common.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_common.cc?rev=308992&r1=308991&r2=308992&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_common.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_common.cc Tue Jul 25 10:28:41 2017
@@ -65,6 +65,8 @@ uptr ParseHex(const char **p) {
}
void MemoryMappedSegment::AddAddressRanges(LoadedModule *module) {
+ // data_ should be unused on this platform
+ CHECK(!data_);
module->addAddressRange(start, end, IsExecutable(), IsWritable());
}
More information about the llvm-commits
mailing list