[Lldb-commits] [lldb] e6d803d - [lldb][Clike][NFC] Fix for #222611 (#227146)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 29 05:08:18 PDT 2026
Author: HernandezJosze
Date: 2026-09-29T13:08:11+01:00
New Revision: e6d803d0cd96bac00bee2e4b8b23b492f99c1590
URL: https://github.com/llvm/llvm-project/commit/e6d803d0cd96bac00bee2e4b8b23b492f99c1590
DIFF: https://github.com/llvm/llvm-project/commit/e6d803d0cd96bac00bee2e4b8b23b492f99c1590.diff
LOG: [lldb][Clike][NFC] Fix for #222611 (#227146)
Fixes #222611
This fixes an issue with Verify being conditionally compiled only when
assertions are enabled
Added:
Modified:
lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.cpp
lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.cpp b/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.cpp
index 01662fc5595b2..285c41aa69e2b 100644
--- a/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.cpp
@@ -80,9 +80,11 @@ TypeSystemClike::DeclContextGetLanguage(void *opaque_decl_ctx) {
return lldb::eLanguageTypeUnknown;
}
+#ifndef NDEBUG
bool TypeSystemClike::Verify(lldb::opaque_compiler_type_t type) {
return false;
}
+#endif
bool TypeSystemClike::IsArrayType(lldb::opaque_compiler_type_t type,
CompilerType *element_type, uint64_t *size,
diff --git a/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.h b/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.h
index aa1818fe52acb..75b26c9be308a 100644
--- a/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.h
+++ b/lldb/source/Plugins/TypeSystem/Clike/TypeSystemClike.h
@@ -46,7 +46,9 @@ class TypeSystemClike : public TypeSystem {
bool DeclContextIsContainedInLookup(void *opaque_decl_ctx,
void *other_opaque_decl_ctx) override;
lldb::LanguageType DeclContextGetLanguage(void *opaque_decl_ctx) override;
+#ifndef NDEBUG
bool Verify(lldb::opaque_compiler_type_t type) override;
+#endif
bool IsArrayType(lldb::opaque_compiler_type_t type,
CompilerType *element_type, uint64_t *size,
bool *is_incomplete) override;
More information about the lldb-commits
mailing list