]> granicus.if.org Git - clang/commitdiff
libclang: remove unused variable.
authorTim Northover <tnorthover@apple.com>
Thu, 27 Apr 2017 20:22:40 +0000 (20:22 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 27 Apr 2017 20:22:40 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301585 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CXCursor.cpp

index 6a2dbfdeda3408b8578ead18012659d4ce3bb9ab..fb61249a778f3fc516dd83c6e87031326addf43e 100644 (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);
     }