Skip to content

Commit 946d035

Browse files
authored
Swift: remove check for inout params in SSA gen
This check is unnecessary since it's enforced by the compiler, and is causing a bad join order.
1 parent 46e6203 commit 946d035

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/SsaImplSpecific.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ predicate variableWrite(BasicBlock bb, int i, SourceVariable v, boolean certain)
3232
exists(CallExpr call, Argument arg |
3333
arg.getExpr().(InOutExpr).getSubExpr() = v.getAnAccess() and
3434
call.getAnArgument() = arg and
35-
call.getStaticTarget().getParam(arg.getIndex()).isInout() and
3635
bb.getNode(i).getNode().asAstNode() = call and
3736
certain = false
3837
)

0 commit comments

Comments
 (0)