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
1c5002c3
Commit
1c5002c3
authored
May 21, 2015
by
yb9976
Browse files
Assert that link resource is allocated during get/set_irn_link().
parent
c740a32e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode_t.h
View file @
1c5002c3
...
...
@@ -251,6 +251,7 @@ static inline int irn_visited_else_mark_(ir_node *node)
*/
static
inline
void
set_irn_link_
(
ir_node
*
node
,
void
*
link
)
{
assert
(
ir_resources_reserved
(
get_irn_irg
(
node
))
&
IR_RESOURCE_IRN_LINK
);
node
->
link
=
link
;
}
...
...
@@ -261,6 +262,7 @@ static inline void set_irn_link_(ir_node *node, void *link)
static
inline
void
*
get_irn_link_
(
const
ir_node
*
node
)
{
assert
(
node
->
kind
==
k_ir_node
);
assert
(
ir_resources_reserved
(
get_irn_irg
(
node
))
&
IR_RESOURCE_IRN_LINK
);
return
node
->
link
;
}
...
...
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