cmd/compile/internal/ssagen: conditon not need

Change-Id: Ib1a9b5a15aa202c7c993f484c92abb326024e658
This commit is contained in:
cui 2021-04-05 20:23:24 +08:00
parent fe587ce856
commit f68f9fecfb
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}