Moved assertion into if clause
authorAndreas Zwinkau <zwinkau@kit.edu>
Fri, 25 Jul 2008 09:22:55 +0000 (09:22 +0000)
committerAndreas Zwinkau <zwinkau@kit.edu>
Fri, 25 Jul 2008 09:22:55 +0000 (09:22 +0000)
It is not necessary to assert anything about lsmode, if
it isn't used anyways.

[r20683]

ir/be/ia32/ia32_emitter.c

index 44b35ae..77a56ab 100644 (file)
@@ -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)