![]() Closure variables are allocated in a parent function and are thus never nil. Don't do a nil check before reading or modifying the value. This commit results in a slight reduction in code size in some test cases: calls.go, channel.go, goroutines.go, json.go, sort.go - presumably wherever closures are used. |
||
---|---|---|
.. | ||
allocs.ll | ||
allocs.out.ll | ||
allocs2.go | ||
coroutines.ll | ||
coroutines.out.ll | ||
func-lowering.ll | ||
func-lowering.out.ll | ||
gc-globals.ll | ||
gc-globals.out.ll | ||
gc-stackslots.ll | ||
gc-stackslots.out.ll | ||
globals-function-sections.ll | ||
globals-function-sections.out.ll | ||
interface.ll | ||
interface.out.ll | ||
interrupt-avr.ll | ||
interrupt-avr.out.ll | ||
interrupt-cortexm.ll | ||
interrupt-cortexm.out.ll | ||
maps.ll | ||
maps.out.ll | ||
panic.ll | ||
panic.out.ll | ||
reflect-implements.ll | ||
reflect-implements.out.ll | ||
reflect.go | ||
stacksize.ll | ||
stacksize.out.ll | ||
stringequal.ll | ||
stringequal.out.ll | ||
stringtobytes.ll | ||
stringtobytes.out.ll | ||
wasm-abi.ll | ||
wasm-abi.out.ll |