- added missing skip_tid()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 6 Nov 2007 22:03:03 +0000 (22:03 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 6 Nov 2007 22:03:03 +0000 (22:03 +0000)
- removed wrong const specifier

[r16471]

include/libfirm/irnode.h
ir/ir/irnode.c

index ce32782..2cde904 100644 (file)
@@ -889,7 +889,7 @@ void     set_Conv_strict(ir_node *node, int flag);
  */
 ir_node *get_Cast_op(const ir_node *node);
 void     set_Cast_op(ir_node *node, ir_node *op);
-ir_type *get_Cast_type(const ir_node *node);
+ir_type *get_Cast_type(ir_node *node);
 void     set_Cast_type(ir_node *node, ir_type *to_tp);
 
 /** Checks for upcast.
index bd90f47..e81e212 100644 (file)
@@ -1120,6 +1120,7 @@ int (is_Const_all_one)(const ir_node *node) {
 ir_type *
 get_Const_type(ir_node *node) {
        assert(node->op == op_Const);
+       node->attr.con.tp = skip_tid(node->attr.con.tp);
        return node->attr.con.tp;
 }
 
@@ -1514,8 +1515,9 @@ void set_Conv_strict(ir_node *node, int strict_flag) {
 }
 
 ir_type *
-get_Cast_type(const ir_node *node) {
+get_Cast_type(ir_node *node) {
        assert(node->op == op_Cast);
+       node->attr.cast.totype = skip_tid(node->attr.cast.totype);
        return node->attr.cast.totype;
 }