projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Improved addressmode optimisation for conv nodes
[libfirm]
/
ir
/
be
/
ia32
/
ia32_new_nodes.c
diff --git
a/ir/be/ia32/ia32_new_nodes.c
b/ir/be/ia32/ia32_new_nodes.c
index
8da3718
..
e509b21
100644
(file)
--- a/
ir/be/ia32/ia32_new_nodes.c
+++ b/
ir/be/ia32/ia32_new_nodes.c
@@
-976,7
+976,7
@@
void set_ia32_out_req_all(ir_node *node, const ia32_register_req_t **reqs) {
*/
const ia32_register_req_t *get_ia32_in_req(const ir_node *node, int pos) {
ia32_attr_t *attr = get_ia32_attr(node);
*/
const ia32_register_req_t *get_ia32_in_req(const ir_node *node, int pos) {
ia32_attr_t *attr = get_ia32_attr(node);
- return attr->in_req
[pos]
;
+ return attr->in_req
!= NULL ? attr->in_req[pos] : NULL
;
}
/**
}
/**
@@
-984,7
+984,7
@@
const ia32_register_req_t *get_ia32_in_req(const ir_node *node, int pos) {
*/
const ia32_register_req_t *get_ia32_out_req(const ir_node *node, int pos) {
ia32_attr_t *attr = get_ia32_attr(node);
*/
const ia32_register_req_t *get_ia32_out_req(const ir_node *node, int pos) {
ia32_attr_t *attr = get_ia32_attr(node);
- return attr->out_req
[pos]
;
+ return attr->out_req
!= NULL ? attr->out_req[pos] : NULL
;
}
/**
}
/**