[clang-doc] Fix unused variable
authorJulie Hockett <juliehockett@google.com>
Tue, 14 Aug 2018 15:38:59 +0000 (15:38 +0000)
committerJulie Hockett <juliehockett@google.com>
Tue, 14 Aug 2018 15:38:59 +0000 (15:38 +0000)
Differential Revision: https://reviews.llvm.org/D50709

llvm-svn: 339685

clang-tools-extra/clang-doc/Mapper.cpp

index 6131a35..0b00bd1 100644 (file)
@@ -30,7 +30,7 @@ template <typename T> bool MapASTVisitor::mapDecl(const T *D) {
     return true;
 
   // Skip function-internal decls.
-  if (const DeclContext *F = D->getParentFunctionOrMethod())
+  if (D->getParentFunctionOrMethod())
     return true;
 
   llvm::SmallString<128> USR;