summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-15 23:18:31 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:31 +0200
commit776ab3ea12f07e2d434a26857d412cff018b1b50 (patch)
tree0b1631b3e16ecb7eae8af43309d1cc60895d4f88 /src/shader_recompiler/frontend
parentemit_spirv: Jump to loop body with local variable (diff)
downloadyuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar.gz
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar.bz2
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar.lz
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar.xz
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.tar.zst
yuzu-776ab3ea12f07e2d434a26857d412cff018b1b50.zip
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r--src/shader_recompiler/frontend/ir/abstract_syntax_list.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/abstract_syntax_list.h b/src/shader_recompiler/frontend/ir/abstract_syntax_list.h
index 1366414c2..e9afb4d92 100644
--- a/src/shader_recompiler/frontend/ir/abstract_syntax_list.h
+++ b/src/shader_recompiler/frontend/ir/abstract_syntax_list.h
@@ -13,6 +13,10 @@ namespace Shader::IR {
class Block;
struct AbstractSyntaxNode {
+ struct NonTrivialDummy {
+ NonTrivialDummy() {}
+ };
+
enum class Type {
Block,
If,
@@ -25,7 +29,8 @@ struct AbstractSyntaxNode {
};
Type type{};
union {
- Block* block{};
+ NonTrivialDummy dummy{};
+ Block* block;
struct {
U1 cond;
Block* body;