From 32c549b2b60bebc6724098230a3a0766ee2a9ef6 Mon Sep 17 00:00:00 2001 From: skenton Date: Mon, 31 Dec 2001 19:42:31 +0000 Subject: [PATCH] make pcall use correct chain git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1752 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/mcs51/gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 9bec319a..3d571cd3 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -2022,7 +2022,7 @@ genPcall (iCode * ic) /* if we are calling a function that is not using the same register bank then we need to save the destination registers on the stack */ - dtype = operandType (IC_LEFT (ic)); + dtype = operandType (IC_LEFT (ic))->next; if (currFunc && dtype && !FUNC_ISNAKED(dtype) && IFFUNC_ISISR (currFunc->type) && (FUNC_REGBANK (currFunc->type) != FUNC_REGBANK (dtype))) { -- 2.47.2