summaryrefslogtreecommitdiffhomepage
path: root/ir/ir
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-02-01 17:35:20 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-02-01 17:36:00 +0100
commitd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (patch)
tree6f602ae147679b4c1c35f176cd04ec7e591c7aab /ir/ir
parentf398ba90ac2abfc0e6288a238bf630aed537ba9f (diff)
Fix warnings in optimize build
Diffstat (limited to 'ir/ir')
-rw-r--r--ir/ir/irio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ir/ir/irio.c b/ir/ir/irio.c
index 5974a54..2250d88 100644
--- a/ir/ir/irio.c
+++ b/ir/ir/irio.c
@@ -2100,8 +2100,7 @@ static void read_modes(read_env_t *env)
switch (kwkind) {
case kw_int_mode: {
const char *name = read_string(env);
- ir_mode_arithmetic arith = read_mode_arithmetic(env);
- assert(arith == irma_twos_complement);
+ assert(read_mode_arithmetic(env) == irma_twos_complement);
int size = read_long(env);
int sign = read_long(env);
unsigned modulo_shift = read_long(env);
@@ -2110,8 +2109,7 @@ static void read_modes(read_env_t *env)
}
case kw_reference_mode: {
const char *name = read_string(env);
- ir_mode_arithmetic arith = read_mode_arithmetic(env);
- assert(arith == irma_twos_complement);
+ assert(read_mode_arithmetic(env) == irma_twos_complement);
int size = read_long(env);
unsigned modulo_shift = read_long(env);
ir_mode *mode = new_reference_mode(name, size, modulo_shift);