mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
CPP: Simplify some code in IRGuards.
This commit is contained in:
@@ -240,7 +240,7 @@ private class GuardConditionFromIR extends GuardCondition {
|
|||||||
*/
|
*/
|
||||||
private predicate controlsBlock(BasicBlock controlled, boolean testIsTrue) {
|
private predicate controlsBlock(BasicBlock controlled, boolean testIsTrue) {
|
||||||
exists(IRBlock irb |
|
exists(IRBlock irb |
|
||||||
forex(IRGuardCondition inst | inst = ir | inst.controls(irb, testIsTrue)) and
|
ir.controls(irb, testIsTrue) and
|
||||||
irb.getAnInstruction().getAst().(ControlFlowNode).getBasicBlock() = controlled and
|
irb.getAnInstruction().getAst().(ControlFlowNode).getBasicBlock() = controlled and
|
||||||
not isUnreachedBlock(irb)
|
not isUnreachedBlock(irb)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user