From 1b7214322f58ba2a0a4dc4273afad364465f92e3 Mon Sep 17 00:00:00 2001 From: Vipin Kumar Date: Tue, 29 Aug 2017 10:12:24 +0000 Subject: [PATCH] fix bug; not changing inFunction after return --- CodeWriter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/CodeWriter.java b/CodeWriter.java index c3821e5..3820cbc 100644 --- a/CodeWriter.java +++ b/CodeWriter.java @@ -569,9 +569,6 @@ private void pushToStack() { // Write Assembly code for the return command public void writeReturn() { - // set inFunction to an empty string - inFunction = ""; - try { writeComment("return");