From 7338689146f5e588460fa90196b0520b9d91699f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 8 Mar 2020 03:42:18 +0900 Subject: [PATCH] [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. --- tools/qfcc/source/flow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/flow.c b/tools/qfcc/source/flow.c index f7e144663..526aadbcd 100644 --- a/tools/qfcc/source/flow.c +++ b/tools/qfcc/source/flow.c @@ -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; }