mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
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:
committed by
GitHub
parent
5f9d3d7b09
commit
459bb6ed04
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user