Skip to content

Commit

Permalink
[clangd] Add a missing "return nullptr;" to the SelectionTree::common…
Browse files Browse the repository at this point in the history
…Ancestor.

This would fix some mysterious crashes on codeAction in clangd.

llvm-svn: 365751
  • Loading branch information
hokein committed Jul 11, 2019
1 parent 8b222ec commit 63f5235
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/Selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63f5235

Please sign in to comment.