X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ir.cpp;h=7a2583bea832c99090d676b57126735cad9a88b4;hp=5df12449362846ac36e9ca3e19a608c257c185b6;hb=3f5305af586ebd3505a870f8e599b610144e64e9;hpb=8b2149e315d9cc7383a86e894e41dc2bf9728d93 diff --git a/ir.cpp b/ir.cpp index 5df1244..7a2583b 100644 --- a/ir.cpp +++ b/ir.cpp @@ -1643,7 +1643,7 @@ ir_value* ir_block_create_unary(ir_block *self, lex_ctx_t ctx, case VINSTR_NEG_F: return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_F, nullptr, operand, ot); case VINSTR_NEG_V: - return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_V, nullptr, operand, TYPE_VECTOR); + return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_V, self->m_owner->m_owner->m_nil, operand, TYPE_VECTOR); default: ot = operand->m_vtype;