Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68f0997 commit 5ae3228Copy full SHA for 5ae3228
1 file changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll
@@ -292,9 +292,8 @@ predicate outNodeHasAddressAndIndex(
292
}
293
294
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
+ nodeHasOperand(nodeFrom, def.getValue().asOperand(), def.getIndirectionIndex())
+ or
298
nodeHasInstruction(nodeFrom, def.getValue().asInstruction(), def.getIndirectionIndex())
299
300
0 commit comments