mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Shared: Use edge dominance in basic block library
This commit is contained in:
@@ -14,7 +14,7 @@ query predicate newStyleBarrierGuards(DataFlow::Node n) {
|
||||
|
||||
query predicate controls(CfgNode condition, BasicBlock bb, SuccessorTypes::ConditionalSuccessor s) {
|
||||
exists(ConditionBlock cb |
|
||||
cb.controls(bb, s) and
|
||||
cb.edgeDominates(bb, s) and
|
||||
condition = cb.getLastNode()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user