go/callgraph/rta: fix comment
Change-Id: I52d37297118f9e99f3a71d3a9cf47a01da4aa72c Reviewed-on: https://go-review.googlesource.com/c/38260 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
8542fc29bd
commit
138c20b932
|
@ -184,7 +184,7 @@ func (r *rta) visitDynCall(site ssa.CallInstruction) {
|
|||
r.dynCallSites.Set(S, append(sites, site))
|
||||
|
||||
// For each function of signature S that we know is address-taken,
|
||||
// mark it reachable. We'll add the callgraph edges later.
|
||||
// add an edge and mark it reachable.
|
||||
funcs, _ := r.addrTakenFuncsBySig.At(S).(map[*ssa.Function]bool)
|
||||
for g := range funcs {
|
||||
r.addEdge(site, g, true)
|
||||
|
|
Loading…
Reference in New Issue