aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gc/inl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/inl.c')
-rw-r--r--src/cmd/gc/inl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/gc/inl.c b/src/cmd/gc/inl.c
index f77b51d707..08b462e13c 100644
--- a/src/cmd/gc/inl.c
+++ b/src/cmd/gc/inl.c
@@ -146,6 +146,7 @@ caninl(Node *fn)
fn->nname->inl = fn->nbody;
fn->nbody = inlcopylist(fn->nname->inl);
+ fn->nname->inldcl = inlcopylist(fn->nname->defn->dcl);
// hack, TODO, check for better way to link method nodes back to the thing with the ->inl
// this is so export can find the body of a method
@@ -558,8 +559,8 @@ mkinlcall1(Node **np, Node *fn, int isddd)
//dumplist("ninit pre", ninit);
- if (fn->defn) // local function
- dcl = fn->defn->dcl;
+ if(fn->defn) // local function
+ dcl = fn->inldcl;
else // imported function
dcl = fn->dcl;