Skip to content

Commit

Permalink
Merge pull request #15582 from hvitved/dataflow/cache-viable-callable…
Browse files Browse the repository at this point in the history
…-ext

Data flow: Cache `viableCallableExt`
  • Loading branch information
aschackmull authored Feb 14, 2024
2 parents bafea91 + bc8761c commit 393251d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ module MakeImplCommon<InputSig Lang> {
}

private DataFlowCallable viableCallableExt(DataFlowCall call) {
result = viableCallable(call)
result = viableCallableCached(call)
or
result = viableCallableLambda(call, _)
}
Expand Down Expand Up @@ -479,6 +479,9 @@ module MakeImplCommon<InputSig Lang> {
isArgumentNode(n, call, pos)
}

cached
DataFlowCallable viableCallableCached(DataFlowCall call) { result = viableCallable(call) }

/**
* Gets a viable target for the lambda call `call`.
*
Expand Down

0 comments on commit 393251d

Please sign in to comment.