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) {
6969 exists ( IR:: Instruction pred , SsaExplicitDefinition succ |
7070 succ .getRhs ( ) = pred and
7171 nodeFrom = instructionNode ( pred ) and
72- nodeTo = ssaNode ( succ )
72+ nodeTo = ssaNode ( succ . getVariable ( ) )
7373 )
7474 or
7575 // SSA defn -> SSA capture
7676 exists ( SsaExplicitDefinition pred , SsaVariableCapture succ |
7777 // Check: should these flow from PHIs as well? Perhaps they should be included
7878 // in the use-use graph?
79- succ .( SsaVariableCapture ) . getSourceVariable ( ) = pred . ( SsaExplicitDefinition ) .getSourceVariable ( )
79+ succ .getSourceVariable ( ) = pred .getSourceVariable ( )
8080 |
81- nodeFrom = ssaNode ( pred ) and
82- nodeTo = ssaNode ( succ )
81+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
82+ nodeTo = ssaNode ( succ . getVariable ( ) )
8383 )
8484 or
8585 // SSA defn -> first SSA use
8686 exists ( SsaExplicitDefinition pred , IR:: Instruction succ | succ = pred .getAFirstUse ( ) |
87- nodeFrom = ssaNode ( pred ) and
87+ nodeFrom = ssaNode ( pred . getVariable ( ) ) and
8888 nodeTo = instructionNode ( succ )
8989 )
9090 or
You can’t perform that action at this time.
0 commit comments