mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile/internal/ssa: minor fixes
* Improve some docs and logging. * Set correct type and len for indexing into strings. Fixes #11029. Change-Id: Ib22c45908e41ba3752010d2f5759e37e3921a48e Reviewed-on: https://go-review.googlesource.com/10635 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
8d32360bdd
commit
e00d60901a
3 changed files with 17 additions and 8 deletions
|
|
@ -82,7 +82,7 @@ func deadcode(f *Func) {
|
|||
i++
|
||||
} else {
|
||||
if len(b.Values) > 0 {
|
||||
panic("live value in unreachable block")
|
||||
log.Panicf("live values in unreachable block %v: %v", b, b.Values)
|
||||
}
|
||||
f.bid.put(b.ID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue