mirror of
https://github.com/golang/go
synced 2024-11-17 16:44:44 -07:00
cmd/compile: fix spelling mistake
Change-Id: Id900636ee58a39aaa3dc1c601cb83706d3e2fbe8 Reviewed-on: https://go-review.googlesource.com/67190 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
1b873f5fd2
commit
33c06b1d46
@ -168,7 +168,7 @@ func nilcheckelim2(f *Func) {
|
|||||||
// input pointer is nil. Remove nil checks on those pointers, as the
|
// input pointer is nil. Remove nil checks on those pointers, as the
|
||||||
// faulting instruction effectively does the nil check for free.
|
// faulting instruction effectively does the nil check for free.
|
||||||
unnecessary.clear()
|
unnecessary.clear()
|
||||||
// Optimization: keep track of removed nilckeck with smallest index
|
// Optimization: keep track of removed nilcheck with smallest index
|
||||||
firstToRemove := len(b.Values)
|
firstToRemove := len(b.Values)
|
||||||
for i := len(b.Values) - 1; i >= 0; i-- {
|
for i := len(b.Values) - 1; i >= 0; i-- {
|
||||||
v := b.Values[i]
|
v := b.Values[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user