summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-10-16 15:51:16 +0200
committerMatthias Braun <matze@braunis.de>2014-10-18 20:42:46 +0200
commitd43b03bdc88f632bdac7552879571cd12abf6572 (patch)
tree0a6db116c54c1f4ee3926cdf06746447478d42ed /ir/be/bestack.c
parentdd017bad35ba3c422f9dfeebc79bb7dc92583e34 (diff)
only update livesets if they are valid
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 72f9f9c..83dddb5 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -226,7 +226,7 @@ void be_abi_fix_stack_nodes(ir_graph *irg)
be_ssa_construction_add_copies(&senv, walker_env.sp_nodes, n_sp_nodes);
be_ssa_construction_fix_users_array(&senv, walker_env.sp_nodes, n_sp_nodes);
- if (lv != NULL) {
+ if (lv->sets_valid) {
for (size_t i = 0; i < n_sp_nodes; ++i) {
be_liveness_update(lv, walker_env.sp_nodes[i]);
}