scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 7ceb2bb314fb31bc01ce1781e00be4d29d38b7f3
parent a2e791432572b742067d86ab529bc2b3962a1fdb
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed,  1 Jun 2016 22:04:39 +0200

[cc2] fix alloc()

The order of "type" and '=' was inverted

Diffstat:
cc2/arch/qbe/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -296,7 +296,7 @@ alloc(Symbol *sym) { Type *tp = &sym->type; - printf("\t%s %s=\talloc%lu\t%lu\n", + printf("\t%s =%s\talloc%lu\t%lu\n", symname(sym), size2asm(tp), tp->size, tp->align); }