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 @@ -69,22 +69,22 @@ predicate basicLocalFlowStep(Node nodeFrom, Node nodeTo) {
69
69
exists ( IR:: Instruction pred , SsaExplicitDefinition succ |
70
70
succ .getRhs ( ) = pred and
71
71
nodeFrom = instructionNode ( pred ) and
72
- nodeTo = ssaNode ( succ )
72
+ nodeTo = ssaNode ( succ . getVariable ( ) )
73
73
)
74
74
or
75
75
// SSA defn -> SSA capture
76
76
exists ( SsaExplicitDefinition pred , SsaVariableCapture succ |
77
77
// Check: should these flow from PHIs as well? Perhaps they should be included
78
78
// in the use-use graph?
79
- succ .( SsaVariableCapture ) . getSourceVariable ( ) = pred . ( SsaExplicitDefinition ) .getSourceVariable ( )
79
+ succ .getSourceVariable ( ) = pred .getSourceVariable ( )
80
80
|
81
- nodeFrom = ssaNode ( pred ) and
82
- nodeTo = ssaNode ( succ )
81
+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
82
+ nodeTo = ssaNode ( succ . getVariable ( ) )
83
83
)
84
84
or
85
85
// SSA defn -> first SSA use
86
86
exists ( SsaExplicitDefinition pred , IR:: Instruction succ | succ = pred .getAFirstUse ( ) |
87
- nodeFrom = ssaNode ( pred ) and
87
+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
88
88
nodeTo = instructionNode ( succ )
89
89
)
90
90
or
You can’t perform that action at this time.
0 commit comments