RangeInfo: Avoid analyzing orphan kind if the given node list is empty; tentatively fixing rdar://32533734.

This commit is contained in:
Xi Ge
2017-06-09 15:44:04 -07:00
parent 7a25908491
commit 04eb001c9d

View File

@@ -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(),