Commit c999d6d3 authored by Michael Beck's avatar Michael Beck
Browse files

add assert to get_Block_MacroBlock()

parent 390de711
......@@ -860,8 +860,13 @@ void set_Block_extbb(ir_node *block, ir_extblk *extblk) {
/* returns the macro block header of a block. */
ir_node *get_Block_MacroBlock(const ir_node *block) {
ir_node *mbh;
return get_irn_n(block, -1);
mbh = get_irn_n(block, -1);
/* once macro block header is respected by all optimizations,
this assert can be removed */
assert(mbh != NULL);
return mbh;
/* returns the graph of a Block. */
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