summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-05-03 19:14:07 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-05-03 19:14:07 +0000
commit3a9245481f8904fa3cfab041acadb7742d7ad51e (patch)
treefa1b65a6b1fb9485ee641b5788d8ce096670d07b /compiler-rt
parent52151885e4b711b87bdb948fc0b0f968ff269b37 (diff)
downloadbcm5719-llvm-3a9245481f8904fa3cfab041acadb7742d7ad51e.tar.gz
bcm5719-llvm-3a9245481f8904fa3cfab041acadb7742d7ad51e.zip
[sanitizer] Remove unused 32-bit allocator TransferBatch parameter
Summary: NFC. Remove an unused parameter in `SizeClassAllocator32::TransferBatch::SetFromArray`, and thus get rid of the compilation warning. Reviewers: alekseyshl, vitalybuka Reviewed By: vitalybuka Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D46397 llvm-svn: 331477
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h3
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h
index 73113262053..5bfe83b9ff9 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h
@@ -262,8 +262,7 @@ struct SizeClassAllocator32LocalCache {
// TODO(alekseys): Figure out how to do it without allocating a new batch.
if (UNLIKELY(!b))
DieOnFailure::OnOOM();
- b->SetFromArray(allocator->GetRegionBeginBySizeClass(class_id),
- &c->batch[first_idx_to_drain], count);
+ b->SetFromArray(&c->batch[first_idx_to_drain], count);
c->count -= count;
allocator->DeallocateBatch(&stats_, class_id, b);
}
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h
index 0fb94a12e1e..ca78cad3533 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h
@@ -63,7 +63,7 @@ class SizeClassAllocator32 {
struct TransferBatch {
static const uptr kMaxNumCached = SizeClassMap::kMaxNumCachedHint - 2;
- void SetFromArray(uptr region_beg_unused, void *batch[], uptr count) {
+ void SetFromArray(void *batch[], uptr count) {
count_ = count;
CHECK_LE(count_, kMaxNumCached);
for (uptr i = 0; i < count; i++)
OpenPOWER on IntegriCloud