diff options
| author | cor3ntin <corentinjabot@gmail.com> | 2024-09-05 20:45:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 20:45:31 +0200 |
| commit | d219c63b16851ba264b6495e3f63016d1c8b2aac (patch) | |
| tree | 8807448e92791e7bfec7cf3c5da4ffde3a5c7a1b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 92e75c095bb380039f32218534f78c4580bf76e4 (diff) | |
[Clang] Fix crash with `source_location` in lambda declarators. (#107411)
Parsing lambdas require pushing a declaration context for the lambda, so
that parameters can be attached to it, before its trailing type is
parsed. DAt that point, partially-parsed lambda don't have a name that
can be computed for then.
This would cause source_location::current() to crash when use in the
decltype of a lambda().
We work around this by producing a source_location for an enclosing
scope in that scenario.
Fixes #67134
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
