Summary: These two methods are called in processing prune instructions, when instruction is Prune(expr == null) and Prune(expr != null), to correctly infer nullability in corresponding branches. Typechecking underlying expr makes little sense for two reasons: 1. In practice, expr it is as simple as a temporary SIL variable 2. If the idea is defensively typecheck everything for case when SIL produces crazy expressions, well, that is not going to work: the code around ignores many other forms of expressions, e.g. everything where expr = <something not equal to null literal>. So this is inconsistent. This will simplify further cleanup, see follow up diffs Reviewed By: ngorogiannis Differential Revision: D19743826 fbshipit-source-id: 319a80ee7master
parent
eded9141d9
commit
a4a4b92690
Loading…
Reference in new issue