summaryrefslogtreecommitdiffhomepage
path: root/ir/kaps
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-09-21 13:54:25 +0200
committerMatthias Braun <matze@braunis.de>2012-10-24 13:47:31 +0200
commit64fe0a138b8ebab4633fb47ed7e8b20d41f41491 (patch)
treeff9dbc58a96a85faab7ccadee77d075091b57296 /ir/kaps
parent5c2b81187fdff8978610ec4b85661cc5f6f1247c (diff)
fix a bunch of warnings reported by clang analyzer
Diffstat (limited to 'ir/kaps')
-rw-r--r--ir/kaps/kaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/kaps/kaps.c b/ir/kaps/kaps.c
index 5599a6d..7205cd9 100644
--- a/ir/kaps/kaps.c
+++ b/ir/kaps/kaps.c
@@ -125,7 +125,7 @@ void add_edge_costs(pbqp_t *pbqp, unsigned src_index, unsigned tgt_index,
}
if (edge == NULL) {
- edge = alloc_edge(pbqp, src_index, tgt_index, costs);
+ alloc_edge(pbqp, src_index, tgt_index, costs);
} else {
pbqp_matrix_add(edge->costs, costs);
}