From 1b002382d5b0f66f4b6c180caf8aa76bbcd15958 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 8 Apr 2022 00:34:50 +0200 Subject: [PATCH] BinaryOperatorExpressions are meant to evaluate to a value, they MUST be ValueInstructions --- source/tlang/compiler/codegen/instruction.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tlang/compiler/codegen/instruction.d b/source/tlang/compiler/codegen/instruction.d index 82e733e1..314c25c3 100644 --- a/source/tlang/compiler/codegen/instruction.d +++ b/source/tlang/compiler/codegen/instruction.d @@ -114,7 +114,7 @@ public final class LiteralValue : Value * * Any sort of Binary Operator */ -public class BinOpInstr : Instruction +public class BinOpInstr : Value { import compiler.symbols.data; private Instruction lhs;