Skip to content

Commit 2f13c65

Browse files
Update swift/ql/lib/codeql/swift/controlflow/internal/ControlFlowGraphImpl.qll
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
1 parent 05e6dd8 commit 2f13c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/lib/codeql/swift/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ module Stmts {
100100

101101
// Note: If the brace statement is the body of a `TapExpr`, the first element is the variable
102102
// declaration (see https://github.com/apple/swift/blob/main/include/swift/AST/Expr.h#L848)
103-
// that's initialized by the `Tapxpr`. In `TapExprTre` we've already visited this declaration,
103+
// that's initialized by the `TapExpr`. In `TapExprTree` we've already visited this declaration,
104104
// along with its initializer. So we skip the first element here.
105105
private AstNode getFirstElement() {
106106
if this.isBodyOfTapExpr() then result = ast.getElement(1) else result = ast.getFirstElement()

0 commit comments

Comments
 (0)