From 4cc1ece6ab4e8d17917a51848d618baaebcf3eee Mon Sep 17 00:00:00 2001 From: Meyer Simon Date: Tue, 29 Apr 2025 23:18:01 -0400 Subject: [PATCH] I added detach --- src/intermediate_code.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intermediate_code.c b/src/intermediate_code.c index a0bfa9d..aee5862 100644 --- a/src/intermediate_code.c +++ b/src/intermediate_code.c @@ -64,6 +64,10 @@ char * temp = NULL; otherwise make it next of current and set cur to your instruction. */ +void emit_detach(){ + current = current->prev; + current->next = NULL; +} TNodeOrConst * getOperand1(Instruction * i){ return i->operand1;