We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6453b05 commit dfb7076Copy full SHA for dfb7076
cpp/ql/src/semmle/code/cpp/controlflow/IRGuards.qll
@@ -381,9 +381,7 @@ cached class IRGuardCondition extends Instruction {
381
}
382
383
private ConditionalBranchInstruction get_branch_for_condition(Instruction guard) {
384
- exists(ConditionalBranchInstruction branch|
385
- branch.getCondition() = guard
386
- )
+ result.getCondition() = guard
387
or
388
exists(LogicalNotInstruction cond | result = get_branch_for_condition(cond) and cond.getUnary() = guard)
389
0 commit comments