forked from OSchip/llvm-project
parent
36b3434161
commit
cdc549329f
|
@ -1565,8 +1565,7 @@ CXType clang_Cursor_getReceiverType(CXCursor C) {
|
|||
ME = dyn_cast_or_null<MemberExpr>(CE->getCallee());
|
||||
|
||||
if (ME) {
|
||||
if (const CXXMethodDecl *
|
||||
MD = dyn_cast_or_null<CXXMethodDecl>(ME->getMemberDecl())) {
|
||||
if (dyn_cast_or_null<CXXMethodDecl>(ME->getMemberDecl())) {
|
||||
auto receiverTy = ME->getBase()->IgnoreImpCasts()->getType();
|
||||
return cxtype::MakeCXType(receiverTy, TU);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue