From fe34df595129de2a0e88109c3d49717552e10223 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 30 Sep 2017 21:16:56 +0000 Subject: [PATCH] [ExpressionParser] Prefer isa<> to dyn_cast<>. NFCI. The result type is unused anyway. llvm-svn: 314602 --- lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp index d102fb4..b90247a 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp @@ -2015,8 +2015,7 @@ void ClangExpressionDeclMap::AddOneFunction(NameSearchContext &context, if (!extern_c) { TypeSystem *type_system = function->GetDeclContext().GetTypeSystem(); - if (ClangASTContext *src_ast = - llvm::dyn_cast(type_system)) { + if (llvm::isa(type_system)) { clang::DeclContext *src_decl_context = (clang::DeclContext *)function->GetDeclContext() .GetOpaqueDeclContext(); -- 2.7.4