X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCptropt.c;h=b3ff931f885b0db7c837f57b8772ddd81d631838;hb=bb226788dab3832b0ec0cda70874ce3fce4eebc6;hp=85d94709139b748bcd689215eaebcad37d6387c2;hpb=8d152321714246e8d25b7c02b803eb2e49350c7f;p=fw%2Fsdcc diff --git a/src/SDCCptropt.c b/src/SDCCptropt.c index 85d94709..b3ff931f 100644 --- a/src/SDCCptropt.c +++ b/src/SDCCptropt.c @@ -249,7 +249,7 @@ ptrBaseRematSym (symbol *ptrsym) /*--------------------------------------------------------------------*/ -/* ptrPseudoSymSafe - check to see if the convertion of the result of */ +/* ptrPseudoSymSafe - check to see if the conversion of the result of */ /* a pointerGet of a rematerializable pointer to a pseudo symbol is */ /* safe. Returns true if safe, or false if hazards were detected. */ /*--------------------------------------------------------------------*/ @@ -375,10 +375,10 @@ void ptrPseudoSymConvert (symbol *sym, iCode *dic, char *name) { symbol *psym = newSymbol (name, 1); - psym->type = sym->type; - psym->etype = sym->etype; psym->psbase = ptrBaseRematSym (OP_SYMBOL (IC_LEFT (dic))); - + psym->type = sym->type; + psym->etype = psym->psbase->etype; + strcpy (psym->rname, psym->name); sym->isspilt = 1; sym->usl.spillLoc = psym;