File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
swift/ql/lib/codeql/swift/dataflow/internal Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments