Skip to content

Commit 18cbd6b

Browse files
committed
---
yaml --- r: 294910 b: refs/heads/swift-5.1-branch c: 662238d h: refs/heads/master
1 parent 92580f5 commit 18cbd6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e
12421242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
12431243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
12441244
refs/heads/swift-5.1-old-llvm-branch: 9cef8175146f25b72806154b8a0f4a3f52e3e400
1245-
refs/heads/swift-5.1-branch: 421514f163c3ac8e45320fe9439620866396d79d
1245+
refs/heads/swift-5.1-branch: 662238d7b0d1538eb760e2837d25cf7e68cedd17
12461246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
12471247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e
12481248
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-03-a: 4591c933063ddcb0d6cd6d0cdd01086b2f9b244d

branches/swift-5.1-branch/lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5666,7 +5666,7 @@ void Parser::parseAbstractFunctionBody(AbstractFunctionDecl *AFD) {
56665666
}
56675667
} else if (auto *E = Element.dyn_cast<Expr *>()) {
56685668
if (auto SE = dyn_cast<SequenceExpr>(E->getSemanticsProvidingExpr())) {
5669-
if (SE->getNumElements() > 0 && isa<AssignExpr>(SE->getElement(1))) {
5669+
if (SE->getNumElements() > 1 && isa<AssignExpr>(SE->getElement(1))) {
56705670
// This is an assignment. We don't want to implicitly return
56715671
// it.
56725672
return;

0 commit comments

Comments
 (0)