forked from OSchip/llvm-project
[XRay][compiler-rt] Fixup shadowing
Follow-up to D39175. llvm-svn: 316409
This commit is contained in:
parent
d4503da40c
commit
2e592ea7ed
|
@ -78,7 +78,7 @@ BufferQueue::ErrorCode BufferQueue::releaseBuffer(Buffer &Buf) {
|
|||
if (LiveBuffers == 0) return ErrorCode::NotEnoughMemory;
|
||||
|
||||
// Now that the buffer has been released, we mark it as "used".
|
||||
First->Buffer = Buf;
|
||||
First->Buff = Buf;
|
||||
First->Used = true;
|
||||
Buf.Buffer = nullptr;
|
||||
Buf.Size = 0;
|
||||
|
@ -98,8 +98,8 @@ BufferQueue::ErrorCode BufferQueue::finalize() {
|
|||
BufferQueue::~BufferQueue() {
|
||||
for (auto I = Buffers, E = Buffers + BufferCount; I != E; ++I) {
|
||||
auto &T = *I;
|
||||
auto &Buf = T.Buffer;
|
||||
InternalFree(Buf.Buffer);
|
||||
auto &Buf = T.Buff;
|
||||
InternalFree(Buf.Buff);
|
||||
}
|
||||
delete[] Buffers;
|
||||
delete[] OwnedBuffers;
|
||||
|
|
|
@ -36,7 +36,7 @@ class BufferQueue {
|
|||
private:
|
||||
struct BufferRep {
|
||||
// The managed buffer.
|
||||
Buffer Buffer;
|
||||
Buffer Buff;
|
||||
|
||||
// This is true if the buffer has been returned to the available queue, and
|
||||
// is considered "used" by another thread.
|
||||
|
|
Loading…
Reference in New Issue