shithub: scc

Download patch

ref: d053b0f8fb80ef6066f26b330f9a94991cf9abe6
parent: 2c0c3d4ac325eae13726581807943c1124d4fb20
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Apr 15 05:40:10 EDT 2016

[cc2-qbe] Fix returned name in symname()

We were not returnning the generated name which includes
the sigil.

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -42,7 +42,7 @@
 		case GLOB:
 		case PRIVAT:
 			sprintf(name, "%c%s", c, sym->name);
-			return sym->name;
+			return name;
 		}
 	}