Skip to content

Commit 1f4a530

Browse files
authored
Merge pull request github#14242 from alexet/simplify-ir-guards
CPP: Simplify some code in IRGuards.
2 parents 811a7d0 + c7ccfac commit 1f4a530

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)