diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-17 16:59:46 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-17 17:06:04 -0700 |
commit | a11b330418819d9cc9c4f0ecd31acdc2e0bbb703 (patch) | |
tree | 22bab8ab9ec735563975bb33655bcbb6813077ac /llvm/lib/CodeGen/MachineFrameInfo.cpp | |
parent | 68f163df0ec59082688edd526fe6b30bac95e03e (diff) | |
download | llvm-a11b330418819d9cc9c4f0ecd31acdc2e0bbb703.zip llvm-a11b330418819d9cc9c4f0ecd31acdc2e0bbb703.tar.gz llvm-a11b330418819d9cc9c4f0ecd31acdc2e0bbb703.tar.bz2 |
[lldb/Bindings] Check that process isn't None before calling is_alive.
Make sure that `process` is not None before calling is_alive. Otherwise
this might result in an AttributeError: 'NoneType' object has no
attribute 'is_alive'.
Although lldb.process and friends could already be None in the past, for
example after leaving an interactive scripting session, the issue became
more prevalent after `fc1fd6bf9fcfac412b10b4193805ec5de0e8df57`.
I audited the other interface files for usages of target, process,
thread and frame, but this seems the only place where a global is used
from an SB class.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp')
0 files changed, 0 insertions, 0 deletions