diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2024-07-22 18:31:13 +0200 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2024-07-23 12:28:59 +0200 |
| commit | 363e036ac002d5af4bb82e303052b806a98086a1 (patch) | |
| tree | 5455411906c3c8c2816477a6808601c761807f76 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | c1b70fa5bfea973d4141e27cf9668e9325609e19 (diff) | |
[AST] NFC: add an assertion for invariant of CXXFoldExpr
CXXFoldExpr relies on exactly one of the two operands to have unexpanded
parameter packs. If this invariant does not holds, results of
`getPattern()`, `isLeftFold()` and other related members are incorrect.
Asserting this on construction makes debugging the problems easier as
the failure is happening closer to the code that contains the error.
Also move the constructor to the `.cpp` file to avoid potential ODR
violations from having an `assert` in the header in combination with
precompiled libraries.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
