mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +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;
|
top->o.tempop.flowaddr = func->tmpaddr;
|
||||||
func->tmpaddr += top->size;
|
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;
|
op->o.tempop.flowaddr = top->o.tempop.flowaddr + op->o.tempop.offset;
|
||||||
return op->o.tempop.flowaddr;
|
return op->o.tempop.flowaddr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue