C++: Use 'asDefinition' instead of checking for a 'Store' instruction.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-16 11:00:57 +01:00
parent f3a5ce5efc
commit 8630630c45

View File

@@ -1011,7 +1011,9 @@ predicate nodeIsHidden(Node n) {
predicate neverSkipInPathGraph(Node n) {
// Always show the right-hand side of assignments in the path graph
nodeHasOperand(n, any(StoreInstruction store).getSourceValueOperand(), _)
exists(n.asDefinition())
or
exists(n.asIndirectDefinition())
}
class LambdaCallKind = Unit;