File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -948,13 +948,13 @@ private predicate localStepsToSwitch(Node node) {
948
948
* Holds if `node` is part of a path from a `ParameterNode` to an operand
949
949
* of a `SwitchInstruction`.
950
950
*/
951
- private predicate localStepsFromParameter ( Node node ) {
951
+ private predicate localStepsFromParameterToSwitch ( Node node ) {
952
952
localStepsToSwitch ( node ) and
953
953
(
954
954
node instanceof ParameterNode
955
955
or
956
956
exists ( Node prev |
957
- localStepsFromParameter ( prev ) and
957
+ localStepsFromParameterToSwitch ( prev ) and
958
958
localFlowStepWithSummaries ( prev , node )
959
959
)
960
960
)
@@ -966,8 +966,8 @@ private predicate localStepsFromParameter(Node node) {
966
966
* operand of a `SwitchInstruction`.
967
967
*/
968
968
private predicate getAdditionalFlowIntoCallNodeTermStep ( Node node1 , Node node2 ) {
969
- localStepsFromParameter ( node1 ) and
970
- localStepsFromParameter ( node2 ) and
969
+ localStepsFromParameterToSwitch ( node1 ) and
970
+ localStepsFromParameterToSwitch ( node2 ) and
971
971
localFlowStepWithSummaries ( node1 , node2 )
972
972
}
973
973
You can’t perform that action at this time.
0 commit comments