mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
C++: Use 'asDefinition' instead of checking for a 'Store' instruction.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user