mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
RangeInfo: Avoid analyzing orphan kind if the given node list is empty; tentatively fixing rdar://32533734.
This commit is contained in:
@@ -700,6 +700,8 @@ public:
|
||||
}
|
||||
|
||||
OrphanKind getOrphanKind(ArrayRef<ASTNode> Nodes) {
|
||||
if (Nodes.empty())
|
||||
return OrphanKind::None;
|
||||
|
||||
// Prepare the entire range.
|
||||
SourceRange WholeRange(Nodes.front().getStartLoc(),
|
||||
|
||||
Reference in New Issue
Block a user