Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: unnecessary nil pointer check #40108
This code generates a nil pointer check on
We don't really need a nil pointer check, as the index is bounded by the bounds check.
This would require the nil pointer pass to know that indexes are bounded for indexed loads, so it can prove that the load still occurs in the zero page even with the largest possible index.