diff options
| author | Markus Böck <markus.boeck02@gmail.com> | 2021-05-25 17:47:20 +0200 |
|---|---|---|
| committer | Markus Böck <markus.boeck02@gmail.com> | 2021-05-25 17:48:54 +0200 |
| commit | 09b5ebc07b477e7e115299cf42fe7737736dd5da (patch) | |
| tree | 7d37d9499d80afd9152017f5a0924dac34fb2af4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 1872283457fc1617fa750a11abdfd44e881dfcdb (diff) | |
[mlir][CAPI][test] Change casts and fprintf format strings from long to intptr_t
A test in ir.c makes use of casting a void* to an integer type to print it's address. This cast is currently done with the datatype `long` however, which is only guaranteed to be equal to the pointer width on LP64 system. Other platforms may use a length not equal to the pointer width. 64bit Windows as an example uses 32 bit for `long` which does not match the 64 bit pointers.
This also results in clang warning due to `-Wvoid-pointer-to-int-cast`.
Technically speaking, since the test only passes the value 42, it does not cause any issues, but it'd be nice to fix the warning at least.
Differential Revision: https://reviews.llvm.org/D103085
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
