diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-05-01 21:04:02 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-19 05:11:37 +0200 |
| commit | 849b9aa8cf2ac67faea83defded8d5e97b3df5b2 (patch) | |
| tree | 7d60cca016f2b85fac0f6609da58cfeb6d590f54 /graph.c | |
| parent | f1e4ba13d1499407a72349b50052ae818c8d8553 (diff) | |
| download | sparse-dev-849b9aa8cf2ac67faea83defded8d5e97b3df5b2.tar.gz | |
graph: do not scan removed instructions
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'graph.c')
| -rw-r--r-- | graph.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -130,6 +130,8 @@ static void graph_calls(struct entrypoint *ep, int internal) continue; FOR_EACH_PTR(bb->insns, insn) { + if (!insn->bb) + continue; if (insn->opcode == OP_CALL && internal == !(insn->func->sym->ctype.modifiers & MOD_EXTERN)) { |
