Unverified Commit dbd1fb8e authored by Nathan Ridge's avatar Nathan Ridge Committed by GitHub
Browse files

[clangd] Avoid crash when summarizing pointer-to-member expr for block-end hint (#76492)

For calls through a pointer to member, CXXMemberCallExpr::getCallee() is
a BinaryOperator with operator ->* (after unwrapping parens).

getMethodDecl() only returns non-null if the callee is a MemberExpr.

Fixes https://github.com/clangd/clangd/issues/1873
parent da5378e8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment