summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-03-20 00:38:35 -0700
committerOri Bernstein <ori@eigenstate.org>2017-03-20 00:38:35 -0700
commit6c574d4fc09d60095b4d74e865a67a8b1d2b2270 (patch)
treeb5a78da1bf32fa7d780c3f71baecf5b68e7afcf7 /6/simp.c
parent5cf18de659c44f4287c103dd81298c5f6b7e0951 (diff)
downloadmc-6c574d4fc09d60095b4d74e865a67a8b1d2b2270.tar.gz
Step by line in gdb.
I guess it's a good idea.
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/simp.c b/6/simp.c
index 6f5a132..968d5f2 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -1387,6 +1387,7 @@ static Func *simpfn(Simp *s, char *name, Node *dcl)
fn = zalloc(sizeof(Func));
fn->name = strdup(name);
+ fn->loc = dcl->loc;
fn->type = dcl->decl.type;
fn->isexport = isexport(dcl);
fn->stksz = align(s->stksz, 8);