diff options
author | Pavel Labath <pavel@labath.sk> | 2019-08-21 08:22:19 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-08-21 08:22:19 +0000 |
commit | 9cb317968aad29786b9470722ba0903ca1f7a892 (patch) | |
tree | 065b5c7dbdefdb10c34704160a1aba51c2b38436 | |
parent | dc5403d2dc61343bbf07b9d739b152acd2390c87 (diff) | |
download | bcm5719-llvm-9cb317968aad29786b9470722ba0903ca1f7a892.tar.gz bcm5719-llvm-9cb317968aad29786b9470722ba0903ca1f7a892.zip |
Fix an unused variable warning in ClangASTContext.cpp
llvm-svn: 369503
-rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 77839507373..6d8901e1a9d 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<CXXRecordDecl>(decl_ctx)) { + if (isa<CXXRecordDecl>(decl_ctx)) decl->setAnonymousStructOrUnion(true); - } } if (decl) { |