summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-12-17 09:36:16 -0500
committerNico Weber <thakis@chromium.org>2021-12-17 09:44:09 -0500
commit5dd8ff73804acf5aa3917011b214bd19e3332f51 (patch)
tree6571174ff244b6f15a86c6311d00f1e5182ef3a8 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent22dbc7a48bf7a3942a7e5ff57977ef828d240bd3 (diff)
[asan/mac] Fix remaining -Wformat warnings
AARCH64_GET_REG() is used to initialize uptrs, and after D79132 the ptrauth branch of its implementation explicitly casts to uptr. The non-ptrauth branch returns ucontext->uc_mcontext->__ss.__fp (etc), which has either type void* or __uint64_t (ref usr/include/mach/arm/_structs.h) where __uint64_t is a unsigned long long (ref usr/include/arm/_types.h). uptr is an unsigned long (ref compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h). So explicitly cast to uptr in this branch as well, so that AARCH64_GET_REG() has a well-defined type. Then change DUMPREGA64() tu use %lx instead of %llx since that's the right type for uptr. (Most other places in compiler-rt print uptrs as %p and cast the arg to (void*), but there are explicit 0x%016 format strings in the surroundings, so be locally consistent with that.) No behavior change, in the end it's just 64-bit unsigneds by slightly different names.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions