commit 7ceb2bb314fb31bc01ce1781e00be4d29d38b7f3
Author: Quentin Rameau <[email protected]>
AuthorDate: Wed Jun 1 22:04:39 2016 +0200
Commit: Quentin Rameau <[email protected]>
CommitDate: Wed Jun 1 22:04:39 2016 +0200
[cc2] fix alloc()
The order of "type" and '=' was inverted
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 91e78f1..2f213c5 100644
--- 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);
}