From: Wolfgang (Blub) Bumiller Date: Sat, 11 Aug 2012 15:53:41 +0000 (+0200) Subject: generate address of store_return values created with ir_value_out properly X-Git-Tag: 0.1-rc1~349^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5f2a775d41c23db495fe24d7414e5e36530785b7;p=xonotic%2Fgmqcc.git generate address of store_return values created with ir_value_out properly --- diff --git a/ir.c b/ir.c index f9e9fd2..1f38236 100644 --- a/ir.c +++ b/ir.c @@ -529,6 +529,8 @@ void ir_value_code_setaddr(ir_value *self, int32_t gaddr) int32_t ir_value_code_addr(const ir_value *self) { + if (self->store == store_return) + return OFS_RETURN + self->code.addroffset; return self->code.globaladdr + self->code.addroffset; }