Pseudocode: Avoid null input values

This commit is contained in:
Alexey Sedunov
2014-07-17 16:27:08 +04:00
parent 8083ffad47
commit 267ea81bbe
@@ -905,8 +905,10 @@ public class JetControlFlowProcessor {
PseudoValue value = builder.magic( PseudoValue value = builder.magic(
loopRange != null ? loopRange : expression, loopRange != null ? loopRange : expression,
null, null,
Collections.singletonList(loopRangeValue), ContainerUtil.createMaybeSingletonList(loopRangeValue),
Collections.singletonMap(loopRangeValue, loopRangeTypePredicate), loopRangeValue != null
? Collections.singletonMap(loopRangeValue, loopRangeTypePredicate)
: Collections.<PseudoValue, TypePredicate>emptyMap(),
MagicKind.LOOP_RANGE_ITERATION MagicKind.LOOP_RANGE_ITERATION
).getOutputValue(); ).getOutputValue();