Skip to content

Commit 8ccabbd

Browse files
Merge pull request #66244 from sophiapoirier/MaterializePackExpr-getEndLock-logical-inversion
[Variadic Generics] correct a logical inversion typo in MaterializePa…
2 parents be891c3 + ced806a commit 8ccabbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ class MaterializePackExpr final : public Expr {
37113711
}
37123712

37133713
SourceLoc getEndLoc() const {
3714-
return ElementLoc.isInvalid() ? ElementLoc : FromExpr->getEndLoc();
3714+
return ElementLoc.isValid() ? ElementLoc : FromExpr->getEndLoc();
37153715
}
37163716

37173717
static bool classof(const Expr *E) {

0 commit comments

Comments
 (0)