File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
go/ql/lib/semmle/go/dataflow/internal Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,22 +68,22 @@ predicate basicLocalFlowStep(Node nodeFrom, Node nodeTo) {
68
68
exists ( IR:: Instruction pred , SsaExplicitDefinition succ |
69
69
succ .getRhs ( ) = pred and
70
70
nodeFrom = instructionNode ( pred ) and
71
- nodeTo = ssaNode ( succ )
71
+ nodeTo = ssaNode ( succ . getVariable ( ) )
72
72
)
73
73
or
74
74
// SSA defn -> SSA capture
75
75
exists ( SsaExplicitDefinition pred , SsaVariableCapture succ |
76
76
// Check: should these flow from PHIs as well? Perhaps they should be included
77
77
// in the use-use graph?
78
- succ .( SsaVariableCapture ) . getSourceVariable ( ) = pred . ( SsaExplicitDefinition ) .getSourceVariable ( )
78
+ succ .getSourceVariable ( ) = pred .getSourceVariable ( )
79
79
|
80
- nodeFrom = ssaNode ( pred ) and
81
- nodeTo = ssaNode ( succ )
80
+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
81
+ nodeTo = ssaNode ( succ . getVariable ( ) )
82
82
)
83
83
or
84
84
// SSA defn -> first SSA use
85
85
exists ( SsaExplicitDefinition pred , IR:: Instruction succ | succ = pred .getAFirstUse ( ) |
86
- nodeFrom = ssaNode ( pred ) and
86
+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
87
87
nodeTo = instructionNode ( succ )
88
88
)
89
89
or
You can’t perform that action at this time.
0 commit comments