Skip to content

Commit 96f7a39

Browse files
committed
---
yaml --- r: 349419 b: refs/heads/master-next c: 823113c h: refs/heads/master i: 349417: 633b5bf 349415: 91b8ad2
1 parent b5163f0 commit 96f7a39

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 1e7d0d7aed0d7b46465f4ea66e44a2354176fc40
3+
refs/heads/master-next: 823113c1ff5dd6845f49f8471609a4bea3ccb989
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/include/swift/AST/Expr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4656,7 +4656,8 @@ class AssignExpr : public Expr {
46564656
}
46574657
SourceLoc getEndLoc() const {
46584658
if (!isFolded()) return EqualLoc;
4659-
return (Src->getEndLoc().isValid() ? Src->getEndLoc() : Dest->getEndLoc());
4659+
auto SrcEnd = Src->getEndLoc();
4660+
return (SrcEnd.isValid() ? SrcEnd : Dest->getEndLoc());
46604661
}
46614662

46624663
/// True if the node has been processed by binary expression folding.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This range info request used to take several minutes to get. Adding a test to make sure we don't lose track of it.
2+
// RUN: %target-swift-ide-test -range -pos=4:1 -end-pos=4:12 -source-filename %s | %FileCheck %s -check-prefix=CHECK1
3+
4+
all = "ALL"= "GET"= "POST"= "PUT"= "HEAD"= "DELETE"= "OPTIONS"= "TRACE"= "COPY"= "LOCK"= "MKCOL"= "MOVE"= "PURGE"= "PROPFIND"= "PROPPATCH"= "UNLOCK"= "REPORT"= "MKACTIVITY"= "CHECKOUT"= "MERGE"= "MSEARCH"= "NOTIFY"= "SUBSCRIBE"= "UNSUBSCRIBE"= "PATCH"= "SEARCH"= "CONNECT"= "ERROR"= "UNKNOWN"
5+
6+
// CHECK1: <ASTNodes>2</ASTNodes>

0 commit comments

Comments
 (0)