Skip to content

Commit c7ccfac

Browse files
committed
CPP: Simplify some code in IRGuards.
1 parent 00c83f1 commit c7ccfac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private class GuardConditionFromIR extends GuardCondition {
240240
*/
241241
private predicate controlsBlock(BasicBlock controlled, boolean testIsTrue) {
242242
exists(IRBlock irb |
243-
forex(IRGuardCondition inst | inst = ir | inst.controls(irb, testIsTrue)) and
243+
ir.controls(irb, testIsTrue) and
244244
irb.getAnInstruction().getAst().(ControlFlowNode).getBasicBlock() = controlled and
245245
not isUnreachedBlock(irb)
246246
)

0 commit comments

Comments
 (0)