Skip to content

Commit cc69654

Browse files
authored
types2: ensure that the reportCycle has a deterministic output
1 parent e473ae2 commit cc69654

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cmd/compile/internal/types2/initorder.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool
148148
return int(o1.order()) - int(o2.order())
149149
})
150150
for _, d := range deps {
151-
if d == to {
152-
return []Object{d}
153-
}
154151
if P := findPath(objMap, d, to, seen); P != nil {
155152
return append(P, d)
156153
}

0 commit comments

Comments
 (0)