summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ClangASTContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp3
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) {
OpenPOWER on IntegriCloud