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

Skip to content

Commit 5ae3228

Browse files
committed
C++: Fix TODO.
1 parent 68f0997 commit 5ae3228

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,8 @@ predicate outNodeHasAddressAndIndex(
292292
}
293293

294294
private predicate defToNode(Node nodeFrom, Def def) {
295-
// TODO: This is not yet needed (and in fact, the compiler rejects it because `exists(def.getValue().asOperand())` never holds).
296-
// nodeHasOperand(nodeFrom, def.getValue().asOperand(), def.getIndirectionIndex())
297-
// or
295+
nodeHasOperand(nodeFrom, def.getValue().asOperand(), def.getIndirectionIndex())
296+
or
298297
nodeHasInstruction(nodeFrom, def.getValue().asInstruction(), def.getIndirectionIndex())
299298
}
300299

0 commit comments

Comments
 (0)