[hackers] [scc] [cc2-qbe] Fix merging of labels || Roberto E. Vargas Caballero
commit 2a9ac4414fb450921c6e7f2918f644e34b1fdf6c
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jun 14 18:03:30 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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;
}
Received on Wed Jun 15 2016 - 11:06:59 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 15 2016 - 11:12:14 CEST