summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorQizhi Hu <836744285@qq.com>2023-10-21 09:39:30 +0800
committerGitHub <noreply@github.com>2023-10-21 09:39:30 +0800
commit14bc11a651971bbbdf96565898be2c94fa2b1cf5 (patch)
treec3e6357e061451da4079f84a281723a8de8c01dd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentbdc3e6cb45203ba59e6654da2cb7212ef3a15854 (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