summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch')
-rw-r--r--meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch b/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch
new file mode 100644
index 0000000000..044c366a75
--- /dev/null
+++ b/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch
@@ -0,0 +1,34 @@
1From a90ccc240501bf3362b23f67771f65b7dec2ccf9 Mon Sep 17 00:00:00 2001
2From: Jamie Madill <jmadill@chromium.org>
3Date: Fri, 29 Jul 2022 14:26:37 -0400
4Subject: [PATCH] Remove default copy constructor in header. (#4879)
5
6A recent libc++ roll in Chrome warned of a deprecated copy. We're
7still looking if this is a bug in libc++ or a valid warning, but
8removing the redundant line is a safe workaround or fix in either
9case.
10
11See discussion in https://crrev.com/c/3791771
12
13Upstream-Status: Backport [https://github.com/KhronosGroup/SPIRV-Tools/pull/4879]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 source/opt/merge_return_pass.h | 2 --
17 1 file changed, 2 deletions(-)
18
19diff --git a/source/opt/merge_return_pass.h b/source/opt/merge_return_pass.h
20index a35cf269..d15db2f6 100644
21--- a/source/opt/merge_return_pass.h
22+++ b/source/opt/merge_return_pass.h
23@@ -118,8 +118,6 @@ class MergeReturnPass : public MemPass {
24 StructuredControlState(Instruction* break_merge, Instruction* merge)
25 : break_merge_(break_merge), current_merge_(merge) {}
26
27- StructuredControlState(const StructuredControlState&) = default;
28-
29 bool InBreakable() const { return break_merge_; }
30 bool InStructuredFlow() const { return CurrentMergeId() != 0; }
31
32--
332.37.2
34