null-safe calls
commit7bbc3d0e42e8ffa573f044fe6b27fae2776c1918
authorAaron Orenstein <aorenste@meta.com>
Wed, 7 Dec 2022 19:20:58 +0000 (7 11:20 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 7 Dec 2022 19:20:58 +0000 (7 11:20 -0800)
tree778dc5413916f771164a21aa9de5a43da1b47c2a
parente5da40270c32cb8e59cc80668cea37b3fffaf405
null-safe calls

Summary:
In the lower phase rewrite:
```
$a?->b()
```
to
```
$a ? $a->b() : null
```

Reviewed By: artempyanykh

Differential Revision: D41676624

fbshipit-source-id: 2399ef5faa5115571ffaf225bc78e50452d10a77
hphp/hack/src/hackc/ir/conversions/textual/func.rs
hphp/hack/src/hackc/ir/conversions/textual/hack.rs
hphp/hack/src/hackc/ir/conversions/textual/lower/instrs.rs
hphp/hack/src/hackc/ir/ir_core/func_builder_ex.rs
hphp/hack/src/hackc/ir/ir_core/instr.rs
hphp/hack/src/hackc/test/infer/fcall.hack
hphp/hack/src/hackc/test/infer/fcall_tc.hack