[lldb] CxxModuleHandler - use cast<> instead of dyn_cast<> to avoid dereference of...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 23 Jan 2022 15:10:33 +0000 (15:10 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 23 Jan 2022 15:10:33 +0000 (15:10 +0000)
commitc93491352cf3146559de7755283f0dd259392126
tree128455894af6d2d5628010263c6a83724f736f0e
parentdf0fd1c301d6a17c1cdeea1f19154e60a5b29f47
[lldb] CxxModuleHandler - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr
lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp