![]() An allocated object is never nil, so there is no need for a nil check. This probably does not result in any better optimization (the nil check is easily optimized away by LLVM because the result of runtime.alloc is marked nonnull) but it makes the slice tests a bit cleaner. |
||
---|---|---|
.. | ||
basic.go | ||
basic.ll | ||
float.go | ||
float.ll | ||
pointer.go | ||
pointer.ll | ||
slice.go | ||
slice.ll | ||
string.go | ||
string.ll |