diff options
author | Julian Lettner <julian.lettner@apple.com> | 2022-08-26 16:29:30 -0700 |
---|---|---|
committer | Julian Lettner <julian.lettner@apple.com> | 2022-08-26 16:29:30 -0700 |
commit | 3d928e1d28c602c4036f50b7565637e7badc4467 (patch) | |
tree | 132e3901d01264185cd9bd31070e70cb1c524b89 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | dc32ed8a8e226db3677abb19eda62cfe80572aed (diff) | |
download | llvm-3d928e1d28c602c4036f50b7565637e7badc4467.zip llvm-3d928e1d28c602c4036f50b7565637e7badc4467.tar.gz llvm-3d928e1d28c602c4036f50b7565637e7badc4467.tar.bz2 |
[TSan] Fix pointer/type-mismatch bug in test that has turned into a compile error
Fixes this test compile error:
```
<path>/compiler-rt/test/tsan/debug_alloc_stack.cpp:54:7: error: no matching function for call to '__tsan_get_alloc_stack'
__tsan_get_alloc_stack(mem, trace, num_frames, &thread_id, &thread_os_id);
^~~~~~~~~~~~~~~~~~~~~~
<path>/compiler-rt/test/tsan/debug_alloc_stack.cpp:17:16: note: candidate function not viable: no known conversion from 'uint64_t **' (aka 'unsigned long long **') to 'uint64_t *' (aka 'unsigned long long *') for 5th argument; remove &
extern "C" int __tsan_get_alloc_stack(void *addr, void **trace, size_t size,
^
<path>/compiler-rt/test/tsan/debug_alloc_stack.cpp:61:46: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t *' (aka 'unsigned long long *') [-Wformat]
fprintf(stderr, "thread os id = 0x%llx\n", thread_os_id);
~~~~ ^~~~~~~~~~~~
1 warning and 1 error generated.
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions