diff options
author | walter erquinigo <walter@modular.com> | 2023-08-30 10:27:07 -0400 |
---|---|---|
committer | walter erquinigo <walter@modular.com> | 2023-09-01 20:52:00 -0400 |
commit | 2f9cd6377f3d972ed8cf814225a02a353d6cc545 (patch) | |
tree | de2dd00ae9ad27c88acf3a6d92fe4252e59e091e /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 6256ccfd4f062f0b72b73adffe1dbf2c5b9903bb (diff) | |
download | llvm-2f9cd6377f3d972ed8cf814225a02a353d6cc545.zip llvm-2f9cd6377f3d972ed8cf814225a02a353d6cc545.tar.gz llvm-2f9cd6377f3d972ed8cf814225a02a353d6cc545.tar.bz2 |
[LLDB] Fix IOHandlerEditline::GetCurrentLines()
This method was working as expected if LLDB_ENABLE_LIBEDIT is false, however, if it was true, then the variable m_current_lines_ptr was always pointing to an empty list, because Editline only updates its contents once the full input has been completed (see https://github.com/llvm/llvm-project/blob/main/lldb/source/Host/common/Editline.cpp#L1576).
A simple fix is to invoke Editline::GetInputAsStringList() from GetCurrentLines(), which is already used in many places as the common way to get the full input list.
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
0 files changed, 0 insertions, 0 deletions