func (c *Compiler) emitChanClose(frame *Frame, param ssa.Value) {
	valueType := c.getLLVMType(param.Type().(*types.Chan).Elem())
	valueSize := llvm.ConstInt(c.uintptrType, c.targetData.TypeAllocSize(valueType), false)
	ch := c.getValue(frame, param)
	c.createRuntimeCall("chanClose", []llvm.Value{ch, valueSize}, "")
}
// emitChanClose closes the given channel.
emitChanClose closes the given channel.
// emitChanClose closes the given channel .
func (c *Compiler) emitChanClose(frame *Frame, param ssa.Value) {
	valueType := c.getLLVMType(param.Type().(*types.Chan).Elem())
	valueSize := llvm.ConstInt(c.uintptrType, c.targetData.TypeAllocSize(valueType), false)
	ch := c.getValue(frame, param)
	c.createRuntimeCall("chanClose", []llvm.Value{ch, valueSize}, "")
}
func ( c * Compiler ) emitChanClose ( frame * Frame , param ssa . Value ) { valueType := c . getLLVMType ( param . Type ( ) . ( * types . Chan ) . Elem ( ) ) valueSize := llvm . ConstInt ( c . uintptrType , c . targetData . TypeAllocSize ( valueType ) , false ) ch := c . getValue ( frame , param ) c . createRuntimeCall ( " " , [ ] llvm . Value { ch , valueSize } , " " ) }
emitChanClose closes the given channel.
emitChanClose closes the given channel .