aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.h
diff options
authorLuc Van Oostenryck <lucvoo@kernel.org>2024-01-20 01:24:12 +0100
committerLuc Van Oostenryck <lucvoo@kernel.org>2024-01-20 01:25:33 +0100
commitd5a73d316e38f533d3ec61879149a1c33fac51a3 (patch)
treee76da38b72e37757fd9a12753f1fcb2e122305a3 /evaluate.h
parentd7edb6c7b7c62db1a328fd88f7888324293b005c (diff)
downloadsparse-dev-d5a73d316e38f533d3ec61879149a1c33fac51a3.tar.gz
llvm: do not duplicate strings and use their length in struct string
In 2 places, we duplicate the storage for a string (with strdup) and we also calculate its length via strlen(). Both operation are unneeded as the length is already calculated in the struct string and the pointer to the string data can be safely reused since Sparse will not modify or free it. Signed-off-by: Luc Van Oostenryck <lucvoo@kernel.org>
Diffstat (limited to 'evaluate.h')
0 files changed, 0 insertions, 0 deletions