3
0
Fork 0
forked from suyu/suyu

shader: Use a non-trivial dummy to construct ASL node union

This commit is contained in:
ReinUsesLisp 2021-05-15 18:18:31 -03:00 committed by ameerj
parent 38e7b8c805
commit 776ab3ea12

View file

@ -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;