mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
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.pull/1739/head
Ayke van Laethem
4 years ago
committed by
Ron Evans
2 changed files with 3 additions and 26 deletions
Loading…
Reference in new issue