projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c63d08
)
Fix opt/ldst.c
author
Andreas Zwinkau
<zwinkau@kit.edu>
Tue, 26 Apr 2011 12:04:00 +0000
(14:04 +0200)
committer
Andreas Zwinkau
<zwinkau@kit.edu>
Tue, 26 Apr 2011 12:04:00 +0000
(14:04 +0200)
A Load might not have a ProjM
ir/opt/ldstopt.c
patch
|
blob
|
history
diff --git
a/ir/opt/ldstopt.c
b/ir/opt/ldstopt.c
index
f69fbf6
..
fe175a9
100644
(file)
--- a/
ir/opt/ldstopt.c
+++ b/
ir/opt/ldstopt.c
@@
-709,7
+709,8
@@
static void handle_load_update(ir_node *load)
ir_node *mem = get_Load_mem(load);
/* a Load whose value is neither used nor exception checked, remove it */
- exchange(info->projs[pn_Load_M], mem);
+ if (info->projs[pn_Load_M])
+ exchange(info->projs[pn_Load_M], mem);
if (info->projs[pn_Load_X_regular])
exchange(info->projs[pn_Load_X_regular], new_r_Jmp(get_nodes_block(load)));
kill_node(load);