Skip to content

Commit 5ac96d0

Browse files
committed
Dataflow: Move viableImplNotCallContextReducedReverse to DataFlowImplCommon::CallContextSensitivity.
1 parent 740bb84 commit 5ac96d0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,10 +2569,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25692569
Cc ccNone() { result instanceof CallContextAny }
25702570

25712571
CcCall ccSomeCall() { result instanceof CallContextSomeCall }
2572-
2573-
predicate viableImplNotCallContextReducedReverse(CcNoCall ctx) {
2574-
ctx instanceof CallContextAny
2575-
}
25762572
}
25772573

25782574
private module Stage2Param implements MkStage<Stage1>::StageParam {

shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,14 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
593593
)
594594
}
595595

596+
/**
597+
* Holds if a return does not have a reduced set of viable call sites to
598+
* return to in call context `ctx`.
599+
*/
600+
predicate viableImplNotCallContextReducedReverse(CallContextNoCall ctx) {
601+
ctx instanceof CallContextAny
602+
}
603+
596604
/**
597605
* Resolves a return from `callable` in `cc` to `call`.
598606
*/

0 commit comments

Comments
 (0)