From 0e629e46199a8561d504c6a86da7f44cee03df52 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 25 Jul 2008 09:22:55 +0000 Subject: [PATCH] Moved assertion into if clause It is not necessary to assert anything about lsmode, if it isn't used anyways. [r20683] --- ir/be/ia32/ia32_emitter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index 44b35aee5..77a56abb4 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -291,11 +291,12 @@ void ia32_emit_mode_suffix(const ir_node *node) void ia32_emit_x87_mode_suffix(const ir_node *node) { - ir_mode *mode = get_ia32_ls_mode(node); - assert(mode != NULL); /* we only need to emit the mode on address mode */ - if(get_ia32_op_type(node) != ia32_Normal) + if(get_ia32_op_type(node) != ia32_Normal) { + ir_mode *mode = get_ia32_ls_mode(node); + assert(mode != NULL); ia32_emit_mode_suffix_mode(mode); + } } static char get_xmm_mode_suffix(ir_mode *mode) -- 2.20.1