[Lldb-commits] [lldb] afb196c - [lldb] s/dyn_cast/isa in TypeSystemClang
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 18 01:36:01 PST 2022
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;
More information about the lldb-commits
mailing list