Skip to content

Commit 46ce273

Browse files
authored
Merge pull request #46 from gostaticanalysis/fix-Returns-preds
Fix bug
2 parents 68af537 + c051627 commit 46ce273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func returnsInBlock(b *ssa.BasicBlock, done map[*ssa.BasicBlock]bool) (rets []*s
5959
}
6060
done[b] = true
6161

62-
if len(b.Preds) == 0 {
62+
if b.Index != 0 && len(b.Preds) == 0 {
6363
return nil
6464
}
6565

0 commit comments

Comments
 (0)