mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
don't use getEnclosingStmt
This commit is contained in:
@@ -444,7 +444,7 @@ module AccessPath {
|
||||
ref = getAccessTo(root, path, _) and
|
||||
ref.getBasicBlock() = bb
|
||||
|
|
||||
ref order by any(int i | ref.asExpr().getEnclosingStmt() = bb.getNode(i))
|
||||
ref order by any(int i | ref.asExpr() = bb.getNode(i))
|
||||
) and
|
||||
result = getAccessTo(root, path, type)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user