diff options
author | Walter Erquinigo <a20012251@gmail.com> | 2024-02-28 11:43:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 11:43:36 -0500 |
commit | cd344a4c20e295d49f8163ec9a0656c1061a6e42 (patch) | |
tree | ec587512f1d0fbafe540f125a1e3fd13de467374 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 64422cf826354ee1d586c2484ec72d66db898e75 (diff) | |
download | llvm-cd344a4c20e295d49f8163ec9a0656c1061a6e42.zip llvm-cd344a4c20e295d49f8163ec9a0656c1061a6e42.tar.gz llvm-cd344a4c20e295d49f8163ec9a0656c1061a6e42.tar.bz2 |
[LLDB] Fix completion of space-only lines in the REPL on Linux (#83203)
https://github.com/modularml/mojo/issues/1796 discovered that if you try
to complete a space-only line in the REPL on Linux, LLDB crashes. I
suspect that editline doesn't behave the same way on linux and on
darwin, because I can't replicate this on darwin.
Adding a boundary check in the completion code prevents the crash from
happening.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions