misc: chore: Merge into pattern

This commit is contained in:
KeatonTheBot 2025-09-25 16:45:15 -05:00
parent a6f3f0718d
commit 48ba1cc9ed
161 changed files with 470 additions and 550 deletions

View file

@ -208,11 +208,11 @@ namespace Spv.Generator
private void AddConstant(Instruction constant)
{
Debug.Assert(constant.Opcode == Op.OpConstant ||
constant.Opcode == Op.OpConstantFalse ||
constant.Opcode == Op.OpConstantTrue ||
constant.Opcode == Op.OpConstantNull ||
constant.Opcode == Op.OpConstantComposite);
Debug.Assert(constant.Opcode is Op.OpConstant
or Op.OpConstantFalse
or Op.OpConstantTrue
or Op.OpConstantNull
or Op.OpConstantComposite);
var key = new ConstantKey(constant);