summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2022-07-18 20:56:07 +0400
committerIgor Kudrin <ikudrin@accesssoftek.com>2022-07-18 20:56:26 +0400
commit32eed8828e0c6b2efdd5b31fa3f18aef1c6c7d7b (patch)
treea629774efc13a53f4b3fd482aca8a7e48efe8461 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent7c0b9b379b0e36ec1ed76ab5a4386e80dafd53fc (diff)
Reapply "[NVPTX] Use the mask() operator to initialize packed structs with pointers"
The original patch revealed an issue of reading incorrect values on BE hosts. That is now changed to use `endian::read32le()` and `endian::read64le()`. Original commit message: The current implementation assumes that all pointers used in the initialization of an aggregate are aligned according to the pointer size of the target; that might not be so if the object is packed. In that case, an array of .u8 should be used and pointers should be decorated with the mask() operator. The operator was introduced in PTX ISA 7.1, so an error is issued if the case is detected for an earlier version. Differential Revision: https://reviews.llvm.org/D127504
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions