[Lldb-commits] [lldb] r369503 - Fix an unused variable warning in ClangASTContext.cpp
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 21 01:22:19 PDT 2019
Author: labath
Date: Wed Aug 21 01:22:19 2019
New Revision: 369503
URL: http://llvm.org/viewvc/llvm-project?rev=369503&view=rev
Log:
Fix an unused variable warning in ClangASTContext.cpp
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=369503&r1=369502&r2=369503&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Aug 21 01:22:19 2019
@@ -1557,9 +1557,8 @@ CompilerType ClangASTContext::CreateReco
//
// 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) {
More information about the lldb-commits
mailing list