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

Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2024-11-15 14:43:04 +00:00
committed by GitHub
parent 5f9d3d7b09
commit 459bb6ed04

View File

@@ -972,7 +972,7 @@ private predicate isRelevantUnaryComparisonOperand(Operand op) {
op = copy.getSourceValueOperand()
)
or
// If phi(x1, x2) is a relevant unary comparison then so is `x1` and `x2`.
// If phi(x1, x2) is a relevant unary comparison then so are `x1` and `x2`.
not op.isDefinitionInexact() and
exists(PhiInstruction phi |
isRelevantUnaryComparisonOperand(unique( | | phi.getAUse())) and