mirror of
https://github.com/github/codeql.git
synced 2026-07-31 07:22:56 +02:00
Python: simulated-rebase fixup — VariableCapture Flow uses CfgImpl::Cfg
The canonicalization work on the CFG facade PR removed the thin
`Cfg::CfgForBb` wrapper module ("we have CfgImpl::Cfg already"), so the
variable-capture Flow instantiation must reference the native
`CfgImpl::Cfg` (= BB::Make<Location, BbInput>, which implements
BB::CfgSig) directly. This is the only mechanical change needed when the
dataflow flip is rebased onto the canonicalized CFG facade.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e1faf86b-2dba-40bd-9419-f10184c53d72
This commit is contained in:
@@ -119,7 +119,7 @@ class CapturedVariable = CaptureInput::CapturedVariable;
|
||||
|
||||
class ClosureExpr = CaptureInput::ClosureExpr;
|
||||
|
||||
module Flow = Shared::Flow<Location, Cfg::CfgForBb, CaptureInput>;
|
||||
module Flow = Shared::Flow<Location, CfgImpl::Cfg, CaptureInput>;
|
||||
|
||||
private Flow::ClosureNode asClosureNode(Node n) {
|
||||
result = n.(SynthCaptureNode).getSynthesizedCaptureNode()
|
||||
|
||||
Reference in New Issue
Block a user