[PATCH] D133089: [LLVM] Replace `dyn_cast_or_null` with `dyn_cast_if_present`, NFC.
Aman LaChapelle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 07:44:34 PDT 2022
bzcheeseman added a comment.
It's also worth noting that the _or_null variants are soft-deprecated (see comments on _or_null) and this is in preparation for actually marking them deprecated. Ideally we want one way to do the "if this value exists, do the dyn_cast/cast" and the `if_present` naming can apply equally well to pointers and optionals.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133089/new/
https://reviews.llvm.org/D133089
More information about the llvm-commits
mailing list