aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorWalter Erquinigo <a20012251@gmail.com>2024-02-28 11:43:36 -0500
committerGitHub <noreply@github.com>2024-02-28 11:43:36 -0500
commitcd344a4c20e295d49f8163ec9a0656c1061a6e42 (patch)
treeec587512f1d0fbafe540f125a1e3fd13de467374 /clang/lib/CodeGen/CodeGenModule.cpp
parent64422cf826354ee1d586c2484ec72d66db898e75 (diff)
downloadllvm-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