diff options
| author | Qizhi Hu <836744285@qq.com> | 2023-10-21 09:39:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 09:39:30 +0800 |
| commit | 14bc11a651971bbbdf96565898be2c94fa2b1cf5 (patch) | |
| tree | c3e6357e061451da4079f84a281723a8de8c01dd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | bdc3e6cb45203ba59e6654da2cb7212ef3a15854 (diff) | |
[clang][dataflow]Use cast_or_null instead of cast to prevent crash (#68510)
`getStorageLocation` may return `nullptr` and this will produce crash
when use `cast`, use `dyn_cast_or_null` instead. I test it locally using
[FTXUI](https://github.com/ArthurSonzogni/FTXUI) and it may be the cause
of issue [issue](https://github.com/llvm/llvm-project/issues/68412), but
I am not sure.
Co-authored-by: huqizhi <huqizhi@836744285@qq.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
