Author: Pavel Labath Date: 2022-01-18T10:33:40+01:00 New Revision: afb196c357f787c6e1e960aeca9531494102ad30
URL: https://github.com/llvm/llvm-project/commit/afb196c357f787c6e1e960aeca9531494102ad30 DIFF: https://github.com/llvm/llvm-project/commit/afb196c357f787c6e1e960aeca9531494102ad30.diff LOG: [lldb] s/dyn_cast/isa in TypeSystemClang Added: Modified: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index f8f0689ee2ac4..51b34669ebadc 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -1476,7 +1476,7 @@ void TypeSystemClang::CreateFunctionTemplateSpecializationInfo( /// as `int I = 3`. static bool TemplateParameterAllowsValue(NamedDecl *param, const TemplateArgument &value) { - if (auto *type_param = llvm::dyn_cast<TemplateTypeParmDecl>(param)) { + if (llvm::isa<TemplateTypeParmDecl>(param)) { // Compare the argument kind, i.e. ensure that <typename> != <int>. if (value.getKind() != TemplateArgument::Type) return false; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits