Skip to content

Commit 0f04e84

Browse files
authored
Merge pull request #11708 from geoffw0/perf
Swift: Fix RemoteFlowSource performance issue.
2 parents 7d5e215 + 8e61c78 commit 0f04e84

File tree

1 file changed

+2
-1
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+2
-1
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/WebView.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private class JsExportedSource extends RemoteFlowSource {
125125
base.getEnclosingDecl() instanceof JsExportedProto and
126126
adopter.getEnclosingDecl() instanceof JsExportedType
127127
|
128-
this.asExpr().(MemberRefExpr).getMember() = adopter and adopter.getName() = base.getName()
128+
this.asExpr().(MemberRefExpr).getMember() = adopter and
129+
pragma[only_bind_out](adopter.getName()) = pragma[only_bind_out](base.getName())
129130
)
130131
}
131132

0 commit comments

Comments
 (0)