From 09f84a75bc63a6316d575f531489d69ec8ade2e8 Mon Sep 17 00:00:00 2001 From: Ingo Oeser Date: Fri, 14 Jun 2013 23:22:50 +0200 Subject: Imported Upstream version 1.1.1 --- src/cmd/gc/inl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cmd/gc/inl.c') diff --git a/src/cmd/gc/inl.c b/src/cmd/gc/inl.c index f77b51d70..08b462e13 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; -- cgit v1.2.3