cast_if_present is simply the new version of cast_or_null - indeed cast_or_null calls cast_if_present. The if_present suffix more closely represents the capabilities of the function now, as it can correctly handle optionals and things that are not "null".
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo