[clang-tidy] getLambdaProperties - use cast<> instead of dyn_cast<> to avoid derefere...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 31 Jan 2022 17:23:03 +0000 (17:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 31 Jan 2022 17:25:16 +0000 (17:25 +0000)
commit1307f66d17e3b63edc27a03c3a64e46d3a7bfa61
tree9fbc3efcd4c611798c58c4b3783a45f2a4b8ee4b
parentc965d5448ecdf9a5513983862a78a2ba8f7fbab8
[clang-tidy] getLambdaProperties - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointers are dereferenced immediately, so assert the cast is correct instead of returning nullptr
clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp