libclang: remove unused variable.

llvm-svn: 301585
This commit is contained in:
Tim Northover 2017-04-27 20:22:40 +00:00
parent 36b3434161
commit cdc549329f
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}