summaryrefslogtreecommitdiffstats
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
commitca856e07ded8ebf103943c47a8648d12f7396906 (patch)
tree33a5631a70c0e2c77073e343f4eac0aa9ceec22b
parent1eb8c206cd865fdf5d8e2090841f9cfe81eab90b (diff)
downloadbcm5719-llvm-ca856e07ded8ebf103943c47a8648d12f7396906.tar.gz
bcm5719-llvm-ca856e07ded8ebf103943c47a8648d12f7396906.zip
[XRay] Fixup: Address some warnings breaking build
Follow-up to D45758. llvm-svn: 333625
-rw-r--r--compiler-rt/lib/xray/xray_profile_collector.h2
-rw-r--r--compiler-rt/lib/xray/xray_segmented_array.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/xray/xray_profile_collector.h b/compiler-rt/lib/xray/xray_profile_collector.h
index 58724d2d227..335043db952 100644
--- a/compiler-rt/lib/xray/xray_profile_collector.h
+++ b/compiler-rt/lib/xray/xray_profile_collector.h
@@ -81,7 +81,7 @@ void reset();
/// provided in the XRay API.
XRayBuffer nextBuffer(XRayBuffer B);
-}; // namespace profileCollectorService
+} // namespace profileCollectorService
} // namespace __xray
diff --git a/compiler-rt/lib/xray/xray_segmented_array.h b/compiler-rt/lib/xray/xray_segmented_array.h
index 97d5ef51d54..3205a969707 100644
--- a/compiler-rt/lib/xray/xray_segmented_array.h
+++ b/compiler-rt/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; }
OpenPOWER on IntegriCloud