View | Details | Raw Unified | Return to bug 244503 | Differences between
and this patch

Collapse All | Expand All

(-)www/iridium/files/patch-third__party_angle_third__party_glslang_src_glslang_Include_PoolAlloc.h (+20 lines)
Line 0 Link Here
1
commit 24b3e8384e93f3e73b6aa14ea00a30574112f9ba
2
Author: Reid Kleckner <rnk@google.com>
3
Date:   Wed Dec 4 14:09:03 2019 -0800
4
5
    Remove glslang::pool_allocator::setAllocator
6
    
7
    TPoolAllocator is not copy assignable, so this setter could never have
8
    been used. After a recent change (878a24ee2), new versions of Clang
9
    reject this code outright.
10
11
--- third_party/angle/third_party/glslang/src/glslang/Include/PoolAlloc.h.orig	2019-04-05 00:55:17 UTC
12
+++ third_party/angle/third_party/glslang/src/glslang/Include/PoolAlloc.h
13
@@ -304,7 +304,6 @@ class pool_allocator { (public)
14
     size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
15
     size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }
16
 
17
-    void setAllocator(TPoolAllocator* a) { allocator = *a; }
18
     TPoolAllocator& getAllocator() const { return allocator; }
19
 
20
 protected:
(-)www/iridium/files/patch-third__party_glslang_src_glslang_Include_PoolAlloc.h (+20 lines)
Line 0 Link Here
1
commit 24b3e8384e93f3e73b6aa14ea00a30574112f9ba
2
Author: Reid Kleckner <rnk@google.com>
3
Date:   Wed Dec 4 14:09:03 2019 -0800
4
5
    Remove glslang::pool_allocator::setAllocator
6
    
7
    TPoolAllocator is not copy assignable, so this setter could never have
8
    been used. After a recent change (878a24ee2), new versions of Clang
9
    reject this code outright.
10
11
--- third_party/glslang/src/glslang/Include/PoolAlloc.h.orig	2019-04-05 00:55:12 UTC
12
+++ third_party/glslang/src/glslang/Include/PoolAlloc.h
13
@@ -304,7 +304,6 @@ class pool_allocator { (public)
14
     size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
15
     size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }
16
 
17
-    void setAllocator(TPoolAllocator* a) { allocator = *a; }
18
     TPoolAllocator& getAllocator() const { return allocator; }
19
 
20
 protected:
(-)www/iridium/files/patch-third__party_swiftshader_src_OpenGL_compiler_PoolAlloc.h (+20 lines)
Line 0 Link Here
1
commit 24b3e8384e93f3e73b6aa14ea00a30574112f9ba
2
Author: Reid Kleckner <rnk@google.com>
3
Date:   Wed Dec 4 14:09:03 2019 -0800
4
5
    Remove glslang::pool_allocator::setAllocator
6
    
7
    TPoolAllocator is not copy assignable, so this setter could never have
8
    been used. After a recent change (878a24ee2), new versions of Clang
9
    reject this code outright.
10
11
--- third_party/swiftshader/src/OpenGL/compiler/PoolAlloc.h.orig	2019-04-05 00:55:15 UTC
12
+++ third_party/swiftshader/src/OpenGL/compiler/PoolAlloc.h
13
@@ -304,7 +304,6 @@ class pool_allocator { (public)
14
 	size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
15
 	size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }
16
 
17
-	void setAllocator(TPoolAllocator *a) { allocator = a; }
18
 	TPoolAllocator& getAllocator() const { return *allocator; }
19
 
20
 protected:

Return to bug 244503