commit 2a9ac4414fb450921c6e7f2918f644e34b1fdf6c
parent 76a21b68a5cb80702419fc17af9179e9be009569
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 14 Jun 2016 18:03:30 +0200
[cc2-qbe] Fix merging of labels
We were copying the id in id and numid fields of the merged label.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc2/arch/qbe/optm.c b/cc2/arch/qbe/optm.c
@@ -33,7 +33,7 @@ optm_dep(Node *np)
sym = np->u.sym;
osym = next->u.sym;
osym->id = sym->id;
- osym->numid = sym->id;
+ osym->numid = sym->numid;
osym->u.stmt = sym->u.stmt;
return NULL;
}