projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be6077
)
ia32: assert(), that get_ia32_latency() is only called for ia32 nodes.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:30:54 +0000
(10:30 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:30:54 +0000
(10:30 +0100)
ir/be/ia32/ia32_new_nodes.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_new_nodes.c
b/ir/be/ia32/ia32_new_nodes.c
index
7d6e7fa
..
951f68e
100644
(file)
--- a/
ir/be/ia32/ia32_new_nodes.c
+++ b/
ir/be/ia32/ia32_new_nodes.c
@@
-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;