mirror of
https://github.com/golang/go
synced 2024-11-19 00:44:40 -07:00
go.tools/go/pointer: add TODO comment.
LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/87810046
This commit is contained in:
parent
6ec40d9aac
commit
9531aca448
@ -322,6 +322,10 @@ func (a *analysis) callEdge(caller *cgnode, site *callsite, calleeid nodeid) {
|
|||||||
callee := obj.cgn
|
callee := obj.cgn
|
||||||
|
|
||||||
if cg := a.result.CallGraph; cg != nil {
|
if cg := a.result.CallGraph; cg != nil {
|
||||||
|
// TODO(adonovan): opt: I would expect duplicate edges
|
||||||
|
// (to wrappers) to arise due to the elimination of
|
||||||
|
// context information, but I haven't observed any.
|
||||||
|
// Understand this better.
|
||||||
callgraph.AddEdge(cg.CreateNode(caller.fn), site.instr, cg.CreateNode(callee.fn))
|
callgraph.AddEdge(cg.CreateNode(caller.fn), site.instr, cg.CreateNode(callee.fn))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user