Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c999d6d3
Commit
c999d6d3
authored
Sep 27, 2007
by
Michael Beck
Browse files
add assert to get_Block_MacroBlock()
[r15964]
parent
390de711
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
c999d6d3
...
...
@@ -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
;
assert
(
is_Block
(
block
));
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. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment