mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Typetracking: minor perf fix.
This commit is contained in:
@@ -805,7 +805,12 @@ module TypeTracking<TypeTrackingInput I> {
|
||||
private predicate sourceSimpleLocalSmallSteps(Node src, Node n) {
|
||||
source(src) and
|
||||
not src instanceof LocalSourceNode and
|
||||
simpleLocalSmallStep*(src, n)
|
||||
src = n
|
||||
or
|
||||
exists(Node mid |
|
||||
sourceSimpleLocalSmallSteps(src, mid) and
|
||||
simpleLocalSmallStep(mid, n)
|
||||
)
|
||||
}
|
||||
|
||||
private predicate firstStep(TypeTracker tt, Node src, LocalSourceNode n2) {
|
||||
|
||||
Reference in New Issue
Block a user