diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index 6a2dbfdeda34..fb61249a778f 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/tools/libclang/CXCursor.cpp @@ -1565,8 +1565,7 @@ CXType clang_Cursor_getReceiverType(CXCursor C) { ME = dyn_cast_or_null(CE->getCallee()); if (ME) { - if (const CXXMethodDecl * - MD = dyn_cast_or_null(ME->getMemberDecl())) { + if (dyn_cast_or_null(ME->getMemberDecl())) { auto receiverTy = ME->getBase()->IgnoreImpCasts()->getType(); return cxtype::MakeCXType(receiverTy, TU); }