diff options
| author | Daniel Bertalan <dani@danielbertalan.dev> | 2023-11-06 20:36:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-06 20:36:47 +0100 |
| commit | 609fe2cb4b2037b546686d5f50c2f330dbca4111 (patch) | |
| tree | 316642ec44eaa059d3be47216ced17f769140734 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 1ad920f05efdbb80e449f6ec00e79a3677acc922 (diff) | |
[ObjC] Fix offsets following `[[no_unique_address]]` for `@encode()` (#71321)
Commit 46ca880fca made `@encode` skip fields that are made zero-sized by
`[[no_unique_address]]`. When iterating the fields, the index which is
passed to `getFieldOffset` failed to be incremented for those due to the
use of an early `continue`, so subsequent fields reported an incorrect
offset. This caused an assertion to be triggered in
`getObjCEncodingForStructureImpl`.
Fixes #71250
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
