Skip to content

Commit 50775d0

Browse files
committed
C++: Get rid of 'UseImpl' in TSsaDefOrUse so that it now only contains definitions.
1 parent 9874d40 commit 50775d0

File tree

2 files changed

+301
-338
lines changed

2 files changed

+301
-338
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,11 +1190,11 @@ class UninitializedNode extends Node {
11901190
LocalVariable v;
11911191

11921192
UninitializedNode() {
1193-
exists(Ssa::Def def |
1193+
exists(Ssa::Def def, Ssa::SourceVariable sv |
11941194
def.getIndirectionIndex() = 0 and
11951195
def.getValue().asInstruction() instanceof UninitializedInstruction and
1196-
Ssa::nodeToDefOrUse(this, def, _) and
1197-
v = def.getSourceVariable().getBaseVariable().(Ssa::BaseIRVariable).getIRVariable().getAst()
1196+
Ssa::defToNode(this, def, sv, _, _, _) and
1197+
v = sv.getBaseVariable().(Ssa::BaseIRVariable).getIRVariable().getAst()
11981198
)
11991199
}
12001200

0 commit comments

Comments
 (0)