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) {
52
52
or
53
53
result = n .( CfgNodes:: ExprNodes:: ConditionalExprCfgNode ) .getBranch ( _)
54
54
or
55
+ result = n .( CfgNodes:: ExprNodes:: AssignExprCfgNode ) .getRhs ( )
56
+ or
55
57
exists ( CfgNodes:: AstCfgNode branch |
56
58
branch = n .( CfgNodes:: ExprNodes:: CaseExprCfgNode ) .getBranch ( _)
57
59
|
@@ -157,8 +159,6 @@ module LocalFlow {
157
159
predicate localFlowStepCommon ( Node nodeFrom , Node nodeTo ) {
158
160
localSsaFlowStep ( nodeFrom , nodeTo )
159
161
or
160
- nodeFrom .asExpr ( ) = nodeTo .asExpr ( ) .( CfgNodes:: ExprNodes:: AssignExprCfgNode ) .getRhs ( )
161
- or
162
162
nodeFrom .asExpr ( ) = nodeTo .asExpr ( ) .( CfgNodes:: ExprNodes:: BlockArgumentCfgNode ) .getValue ( )
163
163
or
164
164
nodeFrom .asExpr ( ) = getALastEvalNode ( nodeTo .asExpr ( ) )
You can’t perform that action at this time.
0 commit comments