[Lldb-commits] [lldb] r314602 - [ExpressionParser] Prefer isa<> to dyn_cast<>. NFCI.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Sat Sep 30 14:16:56 PDT 2017
Author: davide
Date: Sat Sep 30 14:16:56 2017
New Revision: 314602
URL: http://llvm.org/viewvc/llvm-project?rev=314602&view=rev
Log:
[ExpressionParser] Prefer isa<> to dyn_cast<>. NFCI.
The result type is unused anyway.
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp?rev=314602&r1=314601&r2=314602&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp Sat Sep 30 14:16:56 2017
@@ -2015,8 +2015,7 @@ void ClangExpressionDeclMap::AddOneFunct
if (!extern_c) {
TypeSystem *type_system = function->GetDeclContext().GetTypeSystem();
- if (ClangASTContext *src_ast =
- llvm::dyn_cast<ClangASTContext>(type_system)) {
+ if (llvm::isa<ClangASTContext>(type_system)) {
clang::DeclContext *src_decl_context =
(clang::DeclContext *)function->GetDeclContext()
.GetOpaqueDeclContext();
More information about the lldb-commits
mailing list