From 9cb317968aad29786b9470722ba0903ca1f7a892 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 21 Aug 2019 08:22:19 +0000 Subject: [PATCH] Fix an unused variable warning in ClangASTContext.cpp llvm-svn: 369503 --- lldb/source/Symbol/ClangASTContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 7783950..6d8901e 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -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(decl_ctx)) { + if (isa(decl_ctx)) decl->setAnonymousStructOrUnion(true); - } } if (decl) { -- 2.7.4