Permalink
Browse files

jit: Make check was failing with a SIGSEGV.

This was because of an uninitialized variable being used in the routine to compute the dominators.

Cc: Ana Farcasi <farcasia@gmail.com>
Signed-off-by: Nikhil Sarda <nikhilsarda.iitkgp@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information...
1 parent d01604f commit 2c118192c13777035810e108f12e1505b9ba99dc @diffoperator diffoperator committed with Aug 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jit/ssa.c
View
@@ -242,7 +242,7 @@ static void compute_dominators(struct compilation_unit *cu)
bb->dominators = alloc_bitset(cu->nr_bb);
- bb_it = cu->doms[bb_it->dfn];
+ bb_it = cu->doms[bb->dfn];
while (bb_it != cu->entry_bb) {
set_bit(bb->dominators->bits, bb_it->dfn);
bb_it = cu->doms[bb_it->dfn];

0 comments on commit 2c11819

Please sign in to comment.