make pcall use correct chain
authorskenton <skenton@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 31 Dec 2001 19:42:31 +0000 (19:42 +0000)
committerskenton <skenton@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 31 Dec 2001 19:42:31 +0000 (19:42 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1752 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/gen.c

index 9bec319a7388663baffc217f46f802b008bd50eb..3d571cd361f68e1cefcc37fb06b9dbda7a8c92d8 100644 (file)
@@ -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))) {