linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] graph: do not scan removed instructions
@ 2017-11-07 10:54 Luc Van Oostenryck
  2017-11-07 18:54 ` Christopher Li
  0 siblings, 1 reply; 3+ messages in thread
From: Luc Van Oostenryck @ 2017-11-07 10:54 UTC (permalink / raw)
  To: linux-sparse; +Cc: Josh Triplett, Luc Van Oostenryck

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 graph.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graph.c b/graph.c
index 8cbc22027..c9af9a580 100644
--- a/graph.c
+++ b/graph.c
@@ -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)) {
 
-- 
2.14.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-08  8:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07 10:54 [PATCH] graph: do not scan removed instructions Luc Van Oostenryck
2017-11-07 18:54 ` Christopher Li
2017-11-08  8:17   ` Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).