summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-01-28 14:27:23 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-01-28 14:31:14 +0100
commit048e76745af912208607f9a0229fadfb86bf7d77 (patch)
tree982c47144bd44acc10d13482ed445051e86a3c94 /ir/ana
parent1e409c3ab763d542406a26219fd366576fad36ca (diff)
irmemory: Handle Sub in get_address_info().
This fixes opt/loadstore9.c
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/irmemory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/ana/irmemory.c b/ir/ana/irmemory.c
index cc01245..96d4d5f 100644
--- a/ir/ana/irmemory.c
+++ b/ir/ana/irmemory.c
@@ -284,6 +284,11 @@ follow_ptr:
break;
}
+ case iro_Sub:
+ has_const_offset = false;
+ addr = get_Sub_left(addr);
+ break;
+
default:
return (address_info){ addr, sym_offset, offset, has_const_offset };
}