mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[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:
parent
d44d956038
commit
7338689146
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue