diff options
| author | Florian Hahn <flo@fhahn.com> | 2024-08-23 10:11:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-23 10:11:52 +0100 |
| commit | 96509bb98fc0a7e929304a64362baaa2589d5a6b (patch) | |
| tree | cfe4e6e6803ec693f28cafc4fd8310cf586aab19 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | b02b5b7b598ff146f8d5ed529412236533429403 (diff) | |
[Matrix] Preserve signedness when extending matrix index expression. (#103044)
As per [1] the indices for a matrix element access operator shall have
integral or unscoped enumeration types and be non-negative. At the
moment, the index expression is converted to SizeType irrespective of
the signedness of the index expression. This causes implicit sign
conversion warnings if any of the indices is signed.
As per the spec, using signed types as indices is allowed and should not
cause any warnings. If the index expression is signed, extend to
SignedSizeType to avoid the warning.
[1]
https://clang.llvm.org/docs/MatrixTypes.html#matrix-type-element-access-operator
PR: https://github.com/llvm/llvm-project/pull/103044
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
