ia32: assert(), that get_ia32_latency() is only called for ia32 nodes.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:30:54 +0000 (10:30 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:30:54 +0000 (10:30 +0100)
ir/be/ia32/ia32_new_nodes.c

index 7d6e7fa..951f68e 100644 (file)
@@ -645,6 +645,7 @@ void set_ia32_frame_ent(ir_node *node, ir_entity *ent)
  */
 unsigned get_ia32_latency(const ir_node *node)
 {
+       assert(is_ia32_irn(node));
        const ir_op *op               = get_irn_op(node);
        const ia32_op_attr_t *op_attr = (ia32_op_attr_t*) get_op_attr(op);
        return op_attr->latency;