Skip to content

Commit

Permalink
Merge pull request #46 from gostaticanalysis/fix-Returns-preds
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
tenntenn authored Mar 18, 2021
2 parents 68af537 + c051627 commit 46ce273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func returnsInBlock(b *ssa.BasicBlock, done map[*ssa.BasicBlock]bool) (rets []*s
}
done[b] = true

if len(b.Preds) == 0 {
if b.Index != 0 && len(b.Preds) == 0 {
return nil
}

Expand Down

0 comments on commit 46ce273

Please sign in to comment.