summaryrefslogtreecommitdiff
path: root/lib/xray/xray_segmented_array.h
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-05-31 04:55:11 +0000
committerDean Michael Berris <dberris@google.com>2018-05-31 04:55:11 +0000
commitcb693c0d2bc4115c3593c3af6889448d65e67ae8 (patch)
tree6372754582aa0882dc3357b25c6a0eabfe15acb8 /lib/xray/xray_segmented_array.h
parent87a1091e7fbe248a640e44ac81874dda4e09f76e (diff)
[XRay] Fixup: Address some warnings breaking build
Follow-up to D45758. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_segmented_array.h')
-rw-r--r--lib/xray/xray_segmented_array.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/xray/xray_segmented_array.h b/lib/xray/xray_segmented_array.h
index 97d5ef51d..3205a9697 100644
--- a/lib/xray/xray_segmented_array.h
+++ b/lib/xray/xray_segmented_array.h
@@ -66,7 +66,7 @@ private:
static Chunk SentinelChunk;
- AllocatorType *Allocator;
+ AllocatorType *Alloc;
Chunk *Head = &SentinelChunk;
Chunk *Tail = &SentinelChunk;
size_t Size = 0;
@@ -88,7 +88,7 @@ private:
return FreeChunk;
}
- auto Block = Allocator->Allocate();
+ auto Block = Alloc->Allocate();
if (Block.Data == nullptr)
return nullptr;
// TODO: Maybe use a separate managed allocator for Chunk instances?
@@ -200,11 +200,11 @@ private:
};
public:
- explicit Array(AllocatorType &A) : Allocator(&A) {}
+ explicit Array(AllocatorType &A) : Alloc(&A) {}
Array() : Array(GetGlobalAllocator()) {}
Array(const Array &) = delete;
- Array(Array &&O) NOEXCEPT : Allocator(O.Allocator),
+ Array(Array &&O) NOEXCEPT : Alloc(O.Alloc),
Head(O.Head),
Tail(O.Tail),
Size(O.Size) {
@@ -216,8 +216,8 @@ public:
bool empty() const { return Size == 0; }
AllocatorType &allocator() const {
- DCHECK_NE(Allocator, nullptr);
- return *Allocator;
+ DCHECK_NE(Alloc, nullptr);
+ return *Alloc;
}
size_t size() const { return Size; }