diff options
| author | Arjun P <arjunpitchanathan@gmail.com> | 2021-12-11 18:12:08 +0530 |
|---|---|---|
| committer | Arjun P <arjunpitchanathan@gmail.com> | 2021-12-12 17:14:04 +0530 |
| commit | d7ec4d0be34f4d99cedff1a06e12f0a664d039d9 (patch) | |
| tree | 9f0d8a9d870fe9afa40691cc8e830877d034d155 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | c16ced99370ef85d21f0da1c9cb352e17dd9981d (diff) | |
[MLIR] PresburgerSet subtraction: fix bug where the set `b` was not restored properly on return
When subtracting `b \ c`, when there are divisions in `c`, these division
constraints get added to `b`. `b` must be restored to its original state
when returning, but these added divisions constraints were not removed in
one of the return paths. This patch fixes this and deduplicates the
restoration logic by encapuslating it in a lambda `restoreState`. The patch
also includes a regression test for the bug fix.
Reviewed By: Groverkss
Differential Revision: https://reviews.llvm.org/D115577
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
