aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2021-04-07 09:55:20 -0700
committerJordan Rupprecht <rupprecht@google.com>2021-04-07 10:48:47 -0700
commitf49a4440d38a4123b01ded6493a02b4cbf038928 (patch)
treec0b190c1f6fc32133d914d42d9b282e1fc533f43 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentf087d7544a4194066506a45eac0524265bfab08d (diff)
downloadllvm-f49a4440d38a4123b01ded6493a02b4cbf038928.zip
llvm-f49a4440d38a4123b01ded6493a02b4cbf038928.tar.gz
llvm-f49a4440d38a4123b01ded6493a02b4cbf038928.tar.bz2
[lldb][Editline] Fix crash when navigating through empty command history.
An empty history entry can happen by entering the expression evaluator an immediately hitting enter: ``` $ lldb (lldb) e Enter expressions, then terminate with an empty line to evaluate: 1: <hit enter> ``` The next time the user enters the expression evaluator, if they hit the up arrow to load the previous expression, lldb crashes. This patch treats empty history sessions as a single expression of zero length, instead of an empty list of expressions. Fixes http://llvm.org/PR49845. Differential Revision: https://reviews.llvm.org/D100048
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions