Skip to content

Commit 63525a9

Browse files
committed
Swift: Delete one TODO (it has been converted to an internal issue) and fix another.
1 parent 784bb72 commit 63525a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ private module CaptureInput implements VariableCapture::InputSig {
918918
variable = np.getVarDecl() and
919919
source = np.getMatchingExpr()
920920
)
921-
// TODO: support multiple variables in LHS of =, in both of above cases.
922921
}
923922

924923
CapturedVariable getVariable() { result = variable }
@@ -929,7 +928,7 @@ private module CaptureInput implements VariableCapture::InputSig {
929928
class VariableRead extends Expr instanceof S::DeclRefExpr {
930929
CapturedVariable v;
931930

932-
VariableRead() { this.getDecl() = v /* TODO: this should be an R-value only. */ }
931+
VariableRead() { this.getDecl() = v and not isLValue(this) }
933932

934933
CapturedVariable getVariable() { result = v }
935934
}

0 commit comments

Comments
 (0)