[dev.ssa] cmd/compile: make zero-divide panic from div/mod explicit
Added an explicit compare-zero and branch-to-panic for integer division and mod so that other optimizations will not be fooled by their implicit panics. Change-Id: Ibf96f636b541c0088861907c537a6beb4b99fa4c Reviewed-on: https://go-review.googlesource.com/16450Reviewed-by: Keith Randall <khr@golang.org>
Showing
Please
register
or
sign in
to comment