r301585 - libclang: remove unused variable.
Tim Northover via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 27 13:22:40 PDT 2017
Author: tnorthover
Date: Thu Apr 27 15:22:40 2017
New Revision: 301585
URL: http://llvm.org/viewvc/llvm-project?rev=301585&view=rev
Log:
libclang: remove unused variable.
Modified:
cfe/trunk/tools/libclang/CXCursor.cpp
Modified: cfe/trunk/tools/libclang/CXCursor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=301585&r1=301584&r2=301585&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXCursor.cpp (original)
+++ cfe/trunk/tools/libclang/CXCursor.cpp Thu Apr 27 15:22:40 2017
@@ -1565,8 +1565,7 @@ CXType clang_Cursor_getReceiverType(CXCu
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);
}
More information about the cfe-commits
mailing list