Python: Slight cleanup of Cached::call

Makes it more similar to the other functions in this module.
This commit is contained in:
Taus Brock-Nannestad
2021-02-05 12:47:26 +01:00
parent 6c8dfb253d
commit 78cb53449d

View File

@@ -527,10 +527,9 @@ private module Cached {
*/
cached
predicate call(LocalSourceNode func, Node call) {
exists(CfgNode n, CallNode call_node |
call.asCfgNode() = call_node and n.asCfgNode() = call_node.getFunction()
|
func.flowsTo(n)
exists(CfgNode n |
func.flowsTo(n) and
n.asCfgNode() = call.asCfgNode().(CallNode).getFunction()
)
}
}