summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2023-02-14 10:04:33 +0000
committerAlex Zinenko <zinenko@google.com>2023-02-14 10:42:56 +0000
commit8c7cfa357280dd93d33b10bbba0fe33797e27d63 (patch)
treed34c206029b7af166c38519b20c74c2c18ac87db /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent98ecc3ac77a9a994847e63b59b622f05c1829df4 (diff)
[mlir] fix LLVM IR translation of vector<... x index>
When the translation was written, `vector<... x index>` was not allowed at all. After it was added later, the translation was never adapted. It kept working in the most common case of index-typed attributes using 64-bit storage and being converted to 64-bit integers in LLVM IR, but not in the other cases that require truncation or extension, producing wrong results when using the raw data storage of the dense attrbute to construct the LLVM IR constant. When the storage size doesn't match, fall back to the per-element constant construction, which is slower but handles bitwidth differences correctly. Fixes #60614. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D143993
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions