Skip to content

Commit

Permalink
C++: Get rid of 'UseImpl' in TSsaDefOrUse so that it now only contain…
Browse files Browse the repository at this point in the history
…s definitions.
  • Loading branch information
MathiasVP committed Apr 28, 2024
1 parent 9874d40 commit 50775d0
Show file tree
Hide file tree
Showing 2 changed files with 301 additions and 338 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1190,11 +1190,11 @@ class UninitializedNode extends Node {
LocalVariable v;

UninitializedNode() {
exists(Ssa::Def def |
exists(Ssa::Def def, Ssa::SourceVariable sv |
def.getIndirectionIndex() = 0 and
def.getValue().asInstruction() instanceof UninitializedInstruction and
Ssa::nodeToDefOrUse(this, def, _) and
v = def.getSourceVariable().getBaseVariable().(Ssa::BaseIRVariable).getIRVariable().getAst()
Ssa::defToNode(this, def, sv, _, _, _) and
v = sv.getBaseVariable().(Ssa::BaseIRVariable).getIRVariable().getAst()
)
}

Expand Down

0 comments on commit 50775d0

Please sign in to comment.