diff options
Diffstat (limited to 'compiler/channel.go')
-rw-r--r-- | compiler/channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/channel.go b/compiler/channel.go index e04d58969..55fb6920d 100644 --- a/compiler/channel.go +++ b/compiler/channel.go @@ -124,7 +124,7 @@ func (c *Compiler) emitSelect(frame *Frame, expr *ssa.Select) llvm.Value { chanSelectStateType := c.getLLVMRuntimeType("chanSelectState") for _, state := range expr.States { ch := c.getValue(frame, state.Chan) - selectState := c.getZeroValue(chanSelectStateType) + selectState := llvm.ConstNull(chanSelectStateType) selectState = c.builder.CreateInsertValue(selectState, ch, 0, "") switch state.Dir { case types.RecvOnly: |