diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2024-07-29 08:47:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 08:47:02 +0100 |
| commit | 2db0c00e6092947fa07cc587c4a7537213bbc093 (patch) | |
| tree | 9921191b58cfbc912aa0b3ef8e9dcf1a32d94610 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | f6d1d6fe7b7f04db7f0a445c8bc3e63fcdcd8e0a (diff) | |
[clang][CGDebugInfo] Don't generate an implicit 'this' parameter if one was specified explicitly (#100767)
Currently we would unconditionally add an implicit `this` parameter when
creating an instance method type. However, when we have an explicit
'this', we shouldn't generate one. This patch only passes a valid
`ThisPtr` type to `getOrCreateInstanceMethodType` if one wasn't
explicitly specified. There's no way to get a pointer to a member
function with an explicit `this` parameter (those are treated as regular
function pointers instead). So there's no need to account for that case
in `CGDebugInfo::CreateType`.
Fixes https://github.com/llvm/llvm-project/issues/99744
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
