[qfcc] Treat offset real tempops as an error

tempops always have an offset field, but only those that are aliases
should ever have a non-zero offset.
This commit is contained in:
Bill Currie 2020-03-08 03:42:18 +09:00
parent d44d956038
commit 7338689146

View file

@ -271,6 +271,9 @@ get_temp_address (function_t *func, operand_t *op)
top->o.tempop.flowaddr = func->tmpaddr;
func->tmpaddr += top->size;
}
if (top->o.tempop.offset) {
internal_error (0, "real tempop with a non-zero offset");
}
op->o.tempop.flowaddr = top->o.tempop.flowaddr + op->o.tempop.offset;
return op->o.tempop.flowaddr;
}