mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++ Use dontcare instead of one-use exists
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
@@ -27,13 +27,13 @@ private class TStageOperand =
|
||||
class Operand extends TStageOperand {
|
||||
Operand() {
|
||||
// Ensure that the operand does not refer to instructions from earlier stages that are unreachable here
|
||||
exists(Instruction use, Instruction def | this = registerOperand(use, _, def))
|
||||
this = registerOperand(_, _, _)
|
||||
or
|
||||
exists(Instruction use | this = nonSSAMemoryOperand(use, _))
|
||||
this = nonSSAMemoryOperand(_, _)
|
||||
or
|
||||
exists(Instruction use, Instruction def, IRBlock block | this = phiOperand(use, def, block, _))
|
||||
this = phiOperand(_, _, _, _)
|
||||
or
|
||||
exists(Instruction use | this = chiOperand(use, _))
|
||||
this = chiOperand(_, _)
|
||||
}
|
||||
|
||||
/** Gets a textual representation of this element. */
|
||||
|
||||
Reference in New Issue
Block a user