summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_xlatetom.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2015-09-15 10:55:10 +0200
committerMark Wielaard <[email protected]>2015-09-15 11:00:50 +0200
commitdd8bd91f39c95947ad14cd43d30c17eb8c2827fc (patch)
tree2e84d66afe2bba10de8a293824cf1839974dd3ed /libelf/gelf_xlatetom.c
parent2d982861e5e23d38653df7d8dce1d2282cda8ce1 (diff)
libdw: Don't reassign result pointer in dwarf_peel_type.
GCC6 will warn about the reassignement of the nonnull result pointer. The reassignment is indeed a little questionable. The compiler cannot see that the pointer will not actually be reassigned since the function will just return the same pointer value except when the dwarf_formref_die function fails. In which case we don't use the result anymore. So the compiler has to pessimistically assume the pointer will need to be reloaded in the loop every time. Help the compiler generate slightly better code by just checking whether the function fails directly instead of reusing the pointer value for this. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libelf/gelf_xlatetom.c')
0 files changed, 0 insertions, 0 deletions