Add a check that aims to prevent dereferencing casts that may return nullptr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I had thought about merging this into the prefer-isa-or-dyn-cast in conditionals check, however there just isn't enough cross-over between the 2 and the names wouldn't really match up with what each part of the check does.
There could be merit in merging them both into a new check and removing the old one, however I feel that could cause disruption for downstream users.