C++: Fix join order in the IR dataflow library

Not having this fixed caused problems when updating the database
scheme stats file.
This commit is contained in:
Jeroen Ketema
2022-03-02 10:10:55 +01:00
parent b39f383d45
commit 2fd950caad

View File

@@ -241,8 +241,8 @@ private module Cached {
// For compatibility, send flow from arguments to parameters, even for
// functions with no body.
exists(FunctionCall call, int i |
sink.asExpr() = call.getArgument(i) and
result = resolveCall(call).getParameter(i)
sink.asExpr() = call.getArgument(pragma[only_bind_into](i)) and
result = resolveCall(call).getParameter(pragma[only_bind_into](i))
)
or
// For compatibility, send flow into a `Variable` if there is flow to any