change join order for API::InvokeNode::getParameter

This commit is contained in:
Erik Krogh Kristensen
2021-02-17 16:12:26 +01:00
parent c80365c48a
commit dcef6cb974

View File

@@ -914,11 +914,17 @@ module API {
}
/** Gets the API node for the `i`th parameter of this invocation. */
pragma[nomagic]
Node getParameter(int i) {
result = callee.getParameter(i) and
result.getARhs() = getArgument(i)
result = getAParameterCandidate(i)
}
/**
* Gets an API node where a RHS of the node if the `i`th argument to this call.
*/
private Node getAParameterCandidate(int i) { result.getARhs() = getArgument(i) }
/** Gets the API node for a parameter of this invocation. */
Node getAParameter() { result = getParameter(_) }