mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Data flow: Use cached nodeDataFlowType instead of getNodeType
This commit is contained in:
@@ -1123,8 +1123,8 @@ module MakeImplCommon<InputSig Lang> {
|
||||
Input::enableTypeFlow() and
|
||||
(
|
||||
exists(ParamNode p, DataFlowType at, DataFlowType pt |
|
||||
at = getNodeType(arg) and
|
||||
pt = getNodeType(p) and
|
||||
nodeDataFlowType(arg, at) and
|
||||
nodeDataFlowType(p, pt) and
|
||||
relevantCallEdge(_, _, arg, p) and
|
||||
typeStrongerThan0(pt, at)
|
||||
)
|
||||
@@ -1133,8 +1133,8 @@ module MakeImplCommon<InputSig Lang> {
|
||||
// A call edge may implicitly strengthen a type by ensuring that a
|
||||
// specific argument node was reached if the type of that argument was
|
||||
// strengthened via a cast.
|
||||
at = getNodeType(arg) and
|
||||
pt = getNodeType(p) and
|
||||
nodeDataFlowType(arg, at) and
|
||||
nodeDataFlowType(p, pt) and
|
||||
paramMustFlow(p, arg) and
|
||||
relevantCallEdge(_, _, arg, _) and
|
||||
typeStrongerThan0(at, pt)
|
||||
@@ -1174,8 +1174,8 @@ module MakeImplCommon<InputSig Lang> {
|
||||
or
|
||||
exists(ArgNode arg, DataFlowType at, DataFlowType pt |
|
||||
trackedParamTypeCand(p) and
|
||||
at = getNodeType(arg) and
|
||||
pt = getNodeType(p) and
|
||||
nodeDataFlowType(arg, at) and
|
||||
nodeDataFlowType(p, pt) and
|
||||
relevantCallEdge(_, _, arg, p) and
|
||||
typeStrongerThan0(at, pt)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user