mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: Def is only used in defToNode, which doesn't include phi reads nodes.
This commit is contained in:
@@ -1834,7 +1834,7 @@ module IteratorFlow {
|
||||
|
||||
private module IteratorSsa = SsaImpl::Make<Location, SsaInput>;
|
||||
|
||||
private class Def extends IteratorSsa::DefinitionExt {
|
||||
private class Def extends IteratorSsa::Definition {
|
||||
final override Location getLocation() { result = this.getImpl().getLocation() }
|
||||
|
||||
/**
|
||||
@@ -1842,7 +1842,7 @@ module IteratorFlow {
|
||||
* and is a definition (or use) of the variable `sv`.
|
||||
*/
|
||||
predicate hasIndexInBlock(IRBlock block, int index, SourceVariable sv) {
|
||||
super.definesAt(sv, block, index, _)
|
||||
super.definesAt(sv, block, index)
|
||||
}
|
||||
|
||||
private Ssa::DefImpl getImpl() {
|
||||
|
||||
Reference in New Issue
Block a user