aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparse.c
diff options
authorJohannes Berg <johannes@sipsolutions.net>2008-04-11 13:07:47 +0200
committerJosh Triplett <josh@freedesktop.org>2008-04-21 11:09:45 -0700
commitd8760c3341f858648b1e7091fdf24033d0669dc4 (patch)
tree47cc13d147546a1c93ff2a2fd35e19329177f469 /sparse.c
parentc3903563ac88d18a726aef47220573b383d697d1 (diff)
downloadsparse-dev-d8760c3341f858648b1e7091fdf24033d0669dc4.tar.gz
inlined call bugfix & test
This patch fixes an oversight in my other patches, inlined calls weren't checked for context properly. Also adds a test case for this. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'sparse.c')
-rw-r--r--sparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sparse.c b/sparse.c
index 2315038d..fcd74875 100644
--- a/sparse.c
+++ b/sparse.c
@@ -137,6 +137,7 @@ static int check_bb_context(struct entrypoint *ep, struct basic_block *bb,
if (!insn->bb)
continue;
switch (insn->opcode) {
+ case OP_INLINED_CALL:
case OP_CALL:
if (!insn->func || !insn->func->sym || insn->func->type != PSEUDO_SYM)
break;