mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Compute the source range of a TrailingWhereClause without tripping assertions.
Fixes rdar://problem/21001937. Swift SVN r28825
This commit is contained in:
@@ -1482,8 +1482,7 @@ public:
|
||||
/// Compute the source range containing this trailing where clause.
|
||||
SourceRange getSourceRange() const {
|
||||
return SourceRange(WhereLoc,
|
||||
getRequirements().back().getSecondTypeLoc()
|
||||
.getSourceRange().End);
|
||||
getRequirements().back().getSourceRange().End);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user