mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
rearange ArrayIndexingStep to avoid #shared predicate
This commit is contained in:
@@ -156,9 +156,8 @@ private module ArrayDataFlow {
|
||||
|
||||
ArrayIndexingStep() {
|
||||
read = this and
|
||||
forex(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType() |
|
||||
type = TTNumber()
|
||||
) and
|
||||
TTNumber() =
|
||||
unique(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType()) and
|
||||
exists(VarAccess i, ExprOrVarDecl init |
|
||||
i = read.getPropertyNameExpr() and init = any(ForStmt f).getInit()
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user