Swift: Delete one TODO (it has been converted to an internal issue) and fix another.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-10-26 21:48:41 +01:00
parent 784bb72b33
commit 63525a9d9e

View File

@@ -918,7 +918,6 @@ private module CaptureInput implements VariableCapture::InputSig {
variable = np.getVarDecl() and
source = np.getMatchingExpr()
)
// TODO: support multiple variables in LHS of =, in both of above cases.
}
CapturedVariable getVariable() { result = variable }
@@ -929,7 +928,7 @@ private module CaptureInput implements VariableCapture::InputSig {
class VariableRead extends Expr instanceof S::DeclRefExpr {
CapturedVariable v;
VariableRead() { this.getDecl() = v /* TODO: this should be an R-value only. */ }
VariableRead() { this.getDecl() = v and not isLValue(this) }
CapturedVariable getVariable() { result = v }
}