mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Update python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -157,8 +157,9 @@ class GuardNode extends ControlFlowNode {
|
||||
|
||||
GuardNode() { this = conditionBlock.getLastNode() }
|
||||
|
||||
predicate controlsBlock(BasicBlock b, boolean testIsTrue) {
|
||||
conditionBlock.controls(b, testIsTrue)
|
||||
/** Holds if this guard controls block `b` upon evaluating to `branch`. */
|
||||
predicate controlsBlock(BasicBlock b, boolean branch) {
|
||||
conditionBlock.controls(b, branch)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user