added option parms-in-bank1
[fw/sdcc] / src / SDCCast.c
index d6d8a8f6d497ea2fb633f60d32842bcdc16a090e..4e92814703d6836911229db21266e698fb73ab4f 100644 (file)
@@ -753,6 +753,7 @@ processParms (ast * func,
   /* make a copy and change the regparm type to the defined parm */
   actParm->etype = getSpec (actParm->ftype = copyLinkChain (actParm->ftype));
   SPEC_REGPARM (actParm->etype) = SPEC_REGPARM (defParm->etype);
+  SPEC_ARGREG  (actParm->etype) = SPEC_ARGREG (defParm->etype);
   (*parmNumber)++;
   return 0;
 }