aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorAmit Kumar Pandey <137622562+ampandey-1995@users.noreply.github.com>2025-08-22 11:51:13 +0530
committerGitHub <noreply@github.com>2025-08-22 11:51:13 +0530
commitd3d5751a39452327690b4e011a23de8327f02e86 (patch)
treeff16f65e915db1e447101361796fb89b097cf494 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent595148ab7680cf579bcbe405c5a49dcb791d46ab (diff)
downloadllvm-d3d5751a39452327690b4e011a23de8327f02e86.zip
llvm-d3d5751a39452327690b4e011a23de8327f02e86.tar.gz
llvm-d3d5751a39452327690b4e011a23de8327f02e86.tar.bz2
[compiler-rt]: fix CodeQL format-string warnings via explicit casts (#153843)
This change addresses CodeQL format-string warnings across multiple sanitizer libraries by adding explicit casts to ensure that printf-style format specifiers match the actual argument types. Key updates: - Cast pointer arguments to (void*) when used with %p. - Use appropriate integer types and specifiers (e.g., size_t -> %zu, ssize_t -> %zd) to avoid mismatches. - Fix format specifier mismatches across xray, memprof, lsan, hwasan, dfsan. These changes are no-ops at runtime but improve type safety, silence static analysis warnings, and reduce the risk of UB in variadic calls.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions