aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorMichael Kenzel <15786918+michael-kenzel@users.noreply.github.com>2023-11-16 00:41:53 +0100
committerGitHub <noreply@github.com>2023-11-15 18:41:53 -0500
commitb7a249d26fe61432050df470d23bdea417fda574 (patch)
treebc1f86f468fe6f2a592849021c660acc3b1e1199 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent917a550f4d7aaa79b04ed8998a45695a29f0f748 (diff)
downloadllvm-b7a249d26fe61432050df470d23bdea417fda574.zip
llvm-b7a249d26fe61432050df470d23bdea417fda574.tar.gz
llvm-b7a249d26fe61432050df470d23bdea417fda574.tar.bz2
[libunwind] Remove unnecessary strcpy dependency (#72043)
libunwind uses a minimal set of necessary standard library functions, basically just `memset` and `memcpy`. There is a single use of `strcpy` to copy the bytes `"CLNGUNW"` into a `uint64_t` object. This is both an arguably odd use of the `strcpy` function as well as it unnecessarily widens the set of library functions that must be available to build libunwind, which can be an obstacle in baremetal scenarios. This change simply replaces this one `strcpy` with the more fundamental `memcpy`.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions