[PATCH] fix: remove usage when killing symaddr (part 1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When killing OP_SYMADDRs, their usage must be removed. Otherwise
fake users remain and this may inhibit some memop conversions.

Fix this by adding the missing kill_use().

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 simplify.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/simplify.c b/simplify.c
index 78ba9c61f..36e34bc3e 100644
--- a/simplify.c
+++ b/simplify.c
@@ -269,6 +269,7 @@ int kill_insn(struct instruction *insn, int force)
 		break;
 
 	case OP_SYMADDR:
+		kill_use(&insn->symbol);
 		repeat_phase |= REPEAT_SYMBOL_CLEANUP;
 		break;
 
-- 
2.17.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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux