aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-01-05 21:29:55 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-10-25 13:27:33 +0100
commit7f33a71b33707fd5f52e7537d9af3cd00dd4b00b (patch)
tree914c5c49ce82622b8a33d281e40bf607c3223921
parentcfca7b4c6cb48283cb554fc91dc859ff669f2547 (diff)
downloadsparse-7f33a71b33707fd5f52e7537d9af3cd00dd4b00b.tar.gz
linearize: OP_INLINE should not use the function symbol
The instruction OP_INLINE is a kind of note or comment, indicating that the code below it used to be the body of a function which has now been inlined. The symbol of the original function is displayed when this instruction is displayed but this symbol should not be considered as being used by the instruction since there is no dependency or def-use chain between the two. So, replace the use_pseudo() by a simple assignment. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--linearize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linearize.c b/linearize.c
index 1081bda8..e16c686c 100644
--- a/linearize.c
+++ b/linearize.c
@@ -2065,7 +2065,7 @@ static pseudo_t linearize_inlined_call(struct entrypoint *ep, struct statement *
pseudo = linearize_fn_statement(ep, stmt);
insn->target = pseudo;
- use_pseudo(insn, symbol_pseudo(ep, stmt->inline_fn), &insn->func);
+ insn->func = symbol_pseudo(ep, stmt->inline_fn);
bb = ep->active;
if (!bb->insns)
bb->pos = stmt->pos;