--- mem2reg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mem2reg.c b/mem2reg.c index a9bf78ed4..7096a4bf2 100644 --- a/mem2reg.c +++ b/mem2reg.c @@ -253,14 +253,15 @@ static unsigned long externaly_visible(struct symbol *sym, unsigned long mod) /* We know that the symbol-pseudo use is the "src" in the instruction */ struct instruction *insn = pu->insn; + if (!insn->bb) + continue; + switch (insn->opcode) { case OP_STORE: break; case OP_LOAD: break; case OP_SYMADDR: - if (!insn->bb) - continue; return MOD_ADDRESSABLE; case OP_NOP: case OP_SNOP: -- 2.14.0 -- 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