mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: Remove an unnecessary predicate from the 'Indirection' class.
This commit is contained in:
@@ -176,12 +176,6 @@ abstract class Indirection extends Type {
|
||||
* from `opFrom` to `instrTo`.
|
||||
*/
|
||||
predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) { none() }
|
||||
|
||||
/**
|
||||
* Holds if writing the value `value` to an address with base `base` should
|
||||
* be ignored.
|
||||
*/
|
||||
predicate ignoreSourceVariableBase(BaseSourceVariableInstruction base, Node0Impl value) { none() }
|
||||
}
|
||||
|
||||
private class PointerOrReferenceTypeIndirection extends Indirection instanceof PointerOrReferenceType {
|
||||
@@ -231,10 +225,6 @@ predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) {
|
||||
any(Indirection ind).isAdditionalConversionFlow(opFrom, instrTo)
|
||||
}
|
||||
|
||||
predicate ignoreSourceVariableBase(BaseSourceVariableInstruction base, Node0Impl value) {
|
||||
any(Indirection ind).ignoreSourceVariableBase(base, value)
|
||||
}
|
||||
|
||||
newtype TBaseSourceVariable =
|
||||
// Each IR variable gets its own source variable
|
||||
TBaseIRVariable(IRVariable var) or
|
||||
|
||||
Reference in New Issue
Block a user