[clang-tidy] Use cast<>/castAs<> instead of dyn_cast<>/getAs<> to avoid dereference of nullptr
The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr
Loading
Please register or sign in to comment
The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr