mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Remove local flow step from SSA defn to SSA capture
This commit is contained in:
@@ -72,16 +72,6 @@ predicate basicLocalFlowStep(Node nodeFrom, Node nodeTo) {
|
||||
nodeTo = ssaNode(succ.getVariable())
|
||||
)
|
||||
or
|
||||
// SSA defn -> SSA capture
|
||||
exists(SsaExplicitDefinition pred, SsaVariableCapture succ |
|
||||
// Check: should these flow from PHIs as well? Perhaps they should be included
|
||||
// in the use-use graph?
|
||||
succ.getSourceVariable() = pred.getSourceVariable()
|
||||
|
|
||||
nodeFrom = ssaNode(pred.getVariable()) and
|
||||
nodeTo = ssaNode(succ.getVariable())
|
||||
)
|
||||
or
|
||||
// SSA defn -> first SSA use
|
||||
exists(SsaDefinition pred, IR::Instruction succ | succ = pred.getAFirstUse() |
|
||||
(pred instanceof SsaExplicitDefinition or pred instanceof SsaVariableCapture) and
|
||||
|
||||
Reference in New Issue
Block a user