From: notaz Date: Sat, 24 Oct 2015 20:51:55 +0000 (+0300) Subject: translate: avoid dupe work X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aacbf1d5023c090e37601e35b2a4daa19fbfd65;p=ia32rtools.git translate: avoid dupe work --- diff --git a/tools/translate.c b/tools/translate.c index 543d7b0..44d6fb4 100644 --- a/tools/translate.c +++ b/tools/translate.c @@ -8404,15 +8404,9 @@ static void gen_hdr(const char *funcn, int opcnt) } // pass4: - // - remove dead labels // - handle push /pop pairs for (i = 0; i < opcnt; i++) { - if (g_labels[i] != NULL && g_label_refs[i].i == -1) { - free(g_labels[i]); - g_labels[i] = NULL; - } - po = &ops[i]; if (po->flags & (OPF_RMD|OPF_DONE)) continue;