Fix an unused variable warning in ClangASTContext.cpp
authorPavel Labath <pavel@labath.sk>
Wed, 21 Aug 2019 08:22:19 +0000 (08:22 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 21 Aug 2019 08:22:19 +0000 (08:22 +0000)
llvm-svn: 369503

lldb/source/Symbol/ClangASTContext.cpp

index 7783950..6d8901e 100644 (file)
@@ -1557,9 +1557,8 @@ CompilerType ClangASTContext::CreateRecordType(DeclContext *decl_ctx,
     //
     // FIXME: An unnamed class within a class is also wrongly recognized as an
     // anonymous struct.
-    if (CXXRecordDecl *record = dyn_cast<CXXRecordDecl>(decl_ctx)) {
+    if (isa<CXXRecordDecl>(decl_ctx))
       decl->setAnonymousStructOrUnion(true);
-    }
   }
 
   if (decl) {