mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Dataflow: Move viableImplNotCallContextReducedReverse to DataFlowImplCommon::CallContextSensitivity.
This commit is contained in:
@@ -2569,10 +2569,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
|
||||
Cc ccNone() { result instanceof CallContextAny }
|
||||
|
||||
CcCall ccSomeCall() { result instanceof CallContextSomeCall }
|
||||
|
||||
predicate viableImplNotCallContextReducedReverse(CcNoCall ctx) {
|
||||
ctx instanceof CallContextAny
|
||||
}
|
||||
}
|
||||
|
||||
private module Stage2Param implements MkStage<Stage1>::StageParam {
|
||||
|
||||
@@ -593,6 +593,14 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if a return does not have a reduced set of viable call sites to
|
||||
* return to in call context `ctx`.
|
||||
*/
|
||||
predicate viableImplNotCallContextReducedReverse(CallContextNoCall ctx) {
|
||||
ctx instanceof CallContextAny
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves a return from `callable` in `cc` to `call`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user