aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/c2xml.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-03-29 18:49:54 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-03-19 23:56:44 +0100
commitb2dc8031654a536313fe77951ee04c74a3017e0b (patch)
treed3fd2e6316d15640af487dea1534e58178b29848 /c2xml.c
parent701775cdf99d737aeaed00419eaff65d05ef1b57 (diff)
downloadsparse-dev-b2dc8031654a536313fe77951ee04c74a3017e0b.tar.gz
let insert_branch() reuse the terminating instruction
insert_branch() changes a switch or a conditional branch into a jump. This is implemented by deleting the old instruction and allocating the new one. This is not needed here since no reference to the old instruction is kept. So, simply reuse the terminating instruction and change it. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'c2xml.c')
0 files changed, 0 insertions, 0 deletions