mirror of https://github.com/golang/go.git
cmd/compile/internal/ssagen: conditon not need
Change-Id: Ib1a9b5a15aa202c7c993f484c92abb326024e658
This commit is contained in:
parent
fe587ce856
commit
f68f9fecfb
|
|
@ -1801,7 +1801,7 @@ func (s *state) stmt(n ir.Node) {
|
|||
b.AddEdgeTo(bCond)
|
||||
// It can happen that bIncr ends in a block containing only VARKILL,
|
||||
// and that muddles the debugging experience.
|
||||
if n.Op() != ir.OFORUNTIL && b.Pos == src.NoXPos {
|
||||
if b.Pos == src.NoXPos {
|
||||
b.Pos = bCond.Pos
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue