summaryrefslogtreecommitdiff
path: root/src/cmd/6g/gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/6g/gen.c')
-rw-r--r--src/cmd/6g/gen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd/6g/gen.c b/src/cmd/6g/gen.c
index e4dfa2c4b..0fcfe717c 100644
--- a/src/cmd/6g/gen.c
+++ b/src/cmd/6g/gen.c
@@ -22,7 +22,7 @@ compile(Node *fn)
Plist *pl;
Node nod1;
Prog *ptxt;
- long lno, argsiz;
+ long lno;
if(newproc == N) {
newproc = nod(ONAME, N, N);
@@ -70,10 +70,7 @@ if(newproc == N) {
pc->lineno = lineno;
// fill in argument size
- argsiz = getthisx(curfn->type) -> width;
- argsiz += getinargx(curfn->type) -> width;
- argsiz += getoutargx(curfn->type) -> width;
- ptxt->to.offset = rnd(argsiz, maxround);
+ ptxt->to.offset = rnd(curfn->type->argwid, maxround);
// fill in final stack size
ptxt->to.offset <<= 32;