This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix hover crash on InitListExpr.
ClosedPublic

Authored by hokein on Jul 10 2020, 5:02 AM.

Diff Detail

Event Timeline

hokein created this revision.Jul 10 2020, 5:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2020, 5:02 AM
kadircet added inline comments.Jul 10 2020, 6:06 AM
clang-tools-extra/clangd/Hover.cpp
353

shouldn't we put this before QualType T = E->getType(); ?

hokein updated this revision to Diff 277016.Jul 10 2020, 6:17 AM
hokein marked 2 inline comments as done.

address comments.

clang-tools-extra/clangd/Hover.cpp
353

ah, I think you're right. put it there.

kadircet accepted this revision.Jul 10 2020, 6:36 AM

thanks, lgtm!

This revision is now accepted and ready to land.Jul 10 2020, 6:36 AM
This revision was automatically updated to reflect the committed changes.