diff options
| author | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-20 01:24:12 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-20 01:25:33 +0100 |
| commit | d5a73d316e38f533d3ec61879149a1c33fac51a3 (patch) | |
| tree | e76da38b72e37757fd9a12753f1fcb2e122305a3 /simplify.h | |
| parent | d7edb6c7b7c62db1a328fd88f7888324293b005c (diff) | |
| download | sparse-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 'simplify.h')
0 files changed, 0 insertions, 0 deletions
