commit e380352af6d775f0f9aefe3623658ad72ce80c1a
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Apr 15 09:40:10 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Apr 15 09:51:01 2016 +0200

    [cc2-qbe] Fix returned name in symname()
    
    We were not returnning the generated name which includes
    the sigil.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 037b1ab..56d2def 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -42,7 +42,7 @@ symname(Symbol *sym)
                case GLOB:
                case PRIVAT:
                        sprintf(name, "%c%s", c, sym->name);
-                       return sym->name;
+                       return name;
                }
        }
 

Reply via email to