File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ private CfgNodes::ExprCfgNode getALastEvalNode(CfgNodes::ExprCfgNode n) {
5252 or
5353 result = n .( CfgNodes:: ExprNodes:: ConditionalExprCfgNode ) .getBranch ( _)
5454 or
55+ result = n .( CfgNodes:: ExprNodes:: AssignExprCfgNode ) .getRhs ( )
56+ or
5557 exists ( CfgNodes:: AstCfgNode branch |
5658 branch = n .( CfgNodes:: ExprNodes:: CaseExprCfgNode ) .getBranch ( _)
5759 |
@@ -157,8 +159,6 @@ module LocalFlow {
157159 predicate localFlowStepCommon ( Node nodeFrom , Node nodeTo ) {
158160 localSsaFlowStep ( nodeFrom , nodeTo )
159161 or
160- nodeFrom .asExpr ( ) = nodeTo .asExpr ( ) .( CfgNodes:: ExprNodes:: AssignExprCfgNode ) .getRhs ( )
161- or
162162 nodeFrom .asExpr ( ) = nodeTo .asExpr ( ) .( CfgNodes:: ExprNodes:: BlockArgumentCfgNode ) .getValue ( )
163163 or
164164 nodeFrom .asExpr ( ) = getALastEvalNode ( nodeTo .asExpr ( ) )
You can’t perform that action at this time.
0 commit comments