C++: Fix TODO.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-12-02 11:25:18 +00:00
parent 68f0997d87
commit 5ae3228928

View File

@@ -292,9 +292,8 @@ predicate outNodeHasAddressAndIndex(
}
private predicate defToNode(Node nodeFrom, Def def) {
// TODO: This is not yet needed (and in fact, the compiler rejects it because `exists(def.getValue().asOperand())` never holds).
// nodeHasOperand(nodeFrom, def.getValue().asOperand(), def.getIndirectionIndex())
// or
nodeHasOperand(nodeFrom, def.getValue().asOperand(), def.getIndirectionIndex())
or
nodeHasInstruction(nodeFrom, def.getValue().asInstruction(), def.getIndirectionIndex())
}