Commit c50639b4 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

bugfix. type may be null.

[r4282]
parent 744404ea
......@@ -954,7 +954,8 @@ set_SymConst_symbol (ir_node *node, union symconst_symbol sym) {
type *
get_SymConst_value_type (ir_node *node) {
assert (node->op == op_SymConst);
return node->attr.i.tp = skip_tid(node->attr.i.tp);
if (node->attr.i.tp) node->attr.i.tp = skip_tid(node->attr.i.tp);
return node->attr.i.tp;
}
void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment