1 From 24b3e8384e93f3e73b6aa14ea00a30574112f9ba Mon Sep 17 00:00:00 2001
2 From: Reid Kleckner <rnk@google.com>
3 Date: Wed, 4 Dec 2019 14:09:03 -0800
4 Subject: [PATCH] Remove glslang::pool_allocator::setAllocator
6 TPoolAllocator is not copy assignable, so this setter could never have
7 been used. After a recent change (878a24ee2), new versions of Clang
8 reject this code outright.
10 glslang/Include/PoolAlloc.h | 1 -
11 1 file changed, 1 deletion(-)
13 diff --git a/glslang/Include/PoolAlloc.h b/glslang/Include/PoolAlloc.h
14 index 0e237a6a2..b8eccb883 100644
15 --- a/glslang/Include/PoolAlloc.h
16 +++ b/glslang/Include/PoolAlloc.h
17 @@ -304,7 +304,6 @@ class pool_allocator {
18 size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
19 size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }
21 - void setAllocator(TPoolAllocator* a) { allocator = *a; }
22 TPoolAllocator& getAllocator() const { return allocator; }