mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 21:42:58 +00:00
shader: Use a non-trivial dummy to construct ASL node union
This commit is contained in:
parent
38e7b8c805
commit
776ab3ea12
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue