No functional changes here. Just prepare for upcoming changes. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- linearize.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/linearize.c b/linearize.c index 58da7ceb3..5547a3c27 100644 --- a/linearize.c +++ b/linearize.c @@ -934,15 +934,16 @@ static pseudo_t add_load(struct entrypoint *ep, struct access_data *ad) static void add_store(struct entrypoint *ep, struct access_data *ad, pseudo_t value) { struct basic_block *bb = ep->active; + struct instruction *store; - if (bb_reachable(bb)) { - struct symbol *btype = bitfield_base_type(ad->type); - struct instruction *store = alloc_typed_instruction(OP_STORE, btype); - store->offset = ad->offset; - use_pseudo(store, value, &store->target); - use_pseudo(store, ad->address, &store->src); - add_one_insn(ep, store); - } + if (!bb) + return; + + store = alloc_typed_instruction(OP_STORE, bitfield_base_type(ad->type)); + store->offset = ad->offset; + use_pseudo(store, value, &store->target); + use_pseudo(store, ad->address, &store->src); + add_one_insn(ep, store); } static pseudo_t linearize_store_gen(struct entrypoint *ep, -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html