Skip to content

Commit

Permalink
[lldb] s/dyn_cast/isa
Browse files Browse the repository at this point in the history
The cast result is unused and produces a warning with gcc.
  • Loading branch information
labath committed May 26, 2020
1 parent 872c5fb commit c34936d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Expand Up @@ -344,7 +344,7 @@ static void SetMemberOwningModule(clang::Decl *member,
member->setFromASTFile();
member->setOwningModuleID(id.GetValue());
member->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible);
if (auto *nd = llvm::dyn_cast<clang::NamedDecl>(member))
if (llvm::isa<clang::NamedDecl>(member))
if (auto *dc = llvm::dyn_cast<clang::DeclContext>(parent)) {
dc->setHasExternalVisibleStorage(true);
// This triggers ExternalASTSource::FindExternalVisibleDeclsByName() to be
Expand Down

0 comments on commit c34936d

Please sign in to comment.