[clangd] Add a missing "return nullptr;" to the SelectionTree::commonAncestor.

This would fix some mysterious crashes on codeAction in clangd.

llvm-svn: 365751
This commit is contained in:
Haojian Wu 2019-07-11 10:06:24 +00:00
parent 8b222ecf27
commit 63f5235978
1 changed files with 1 additions and 0 deletions

View File

@ -364,6 +364,7 @@ const Node *SelectionTree::commonAncestor() const {
// The tree only contains ancestors of the interesting nodes.
assert(!Ancestor->Children.empty() && "bad node in selection tree");
}
return nullptr;
}
} // namespace clangd