From 43439c6d0c121751473503b8e70464e869cc39aa Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 17 Nov 2016 22:04:32 +0100 Subject: [PATCH] Remember to push the result of lor onto the stack. --- mach/proto/mcg/treebuilder.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/mach/proto/mcg/treebuilder.c b/mach/proto/mcg/treebuilder.c index fcd13611c..01e486500 100644 --- a/mach/proto/mcg/treebuilder.c +++ b/mach/proto/mcg/treebuilder.c @@ -1261,20 +1261,24 @@ static void insn_ivalue(int opcode, arith value) switch (value) { case 0: - appendir( - new_ir1( - IR_FPTOLB, EM_pointersize, - new_ir0( - IR_GETFP, EM_pointersize + push( + appendir( + new_ir1( + IR_FPTOLB, EM_pointersize, + new_ir0( + IR_GETFP, EM_pointersize + ) ) ) ); break; case 1: - appendir( - new_ir0( - IR_GETSP, EM_pointersize + push( + appendir( + new_ir0( + IR_GETSP, EM_pointersize + ) ) ); break;