misc: chore: Merge into pattern

This commit is contained in:
KeatonTheBot committed 2025-09-24 13:51:15 -05:00
1 parent 503dea74c2
commit fa682d406e
157 files changed
+470 -546

No files matched your search

+5 -5
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);