From 393fccea5bda5d1866aaa74f5e5c19a49445fa90 Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 25 Nov 2020 17:10:50 -0500 Subject: [PATCH] Fix Reserve count for trinary ops. --- src/instructions/logical.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instructions/logical.cpp b/src/instructions/logical.cpp index 281ab14..4d7292b 100644 --- a/src/instructions/logical.cpp +++ b/src/instructions/logical.cpp @@ -24,7 +24,7 @@ namespace Sirit { #define DEFINE_TRINARY(opcode) \ Id Module::opcode(Id result_type, Id operand_1, Id operand_2, Id operand_3) { \ - code->Reserve(5); \ + code->Reserve(6); \ return *code << OpId{spv::Op::opcode, result_type} << operand_1 << operand_2 << operand_3 \ << EndOp{}; \ }