commit 2a9ac4414fb450921c6e7f2918f644e34b1fdf6c
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Jun 14 18:03:30 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue Jun 14 18:03:30 2016 +0200

    [cc2-qbe] Fix merging of labels
    
    We were copying the id in id and numid fields of the merged label.

diff --git a/cc2/arch/qbe/optm.c b/cc2/arch/qbe/optm.c
index 8cbaee4..a614b75 100644
--- 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;
                }

Reply via email to