Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef110e7

Browse files
committed
C++: Remove an unnecessary predicate from the 'Indirection' class.
1 parent 31b4dda commit ef110e7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,6 @@ abstract class Indirection extends Type {
176176
* from `opFrom` to `instrTo`.
177177
*/
178178
predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) { none() }
179-
180-
/**
181-
* Holds if writing the value `value` to an address with base `base` should
182-
* be ignored.
183-
*/
184-
predicate ignoreSourceVariableBase(BaseSourceVariableInstruction base, Node0Impl value) { none() }
185179
}
186180

187181
private class PointerOrReferenceTypeIndirection extends Indirection instanceof PointerOrReferenceType {
@@ -231,10 +225,6 @@ predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) {
231225
any(Indirection ind).isAdditionalConversionFlow(opFrom, instrTo)
232226
}
233227

234-
predicate ignoreSourceVariableBase(BaseSourceVariableInstruction base, Node0Impl value) {
235-
any(Indirection ind).ignoreSourceVariableBase(base, value)
236-
}
237-
238228
newtype TBaseSourceVariable =
239229
// Each IR variable gets its own source variable
240230
TBaseIRVariable(IRVariable var) or

0 commit comments

Comments
 (0)