Skip to content

Commit b40f8a5

Browse files
Merge pull request #3980 from adrian-prantl/ndebug
Sink verification code into NDEBUG block
2 parents 81b3a65 + e2ff6be commit b40f8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,6 +2842,7 @@ CompilerType TypeSystemSwiftTypeRef::GetChildCompilerTypeAtIndex(
28422842
auto *runtime = SwiftLanguageRuntime::Get(exe_scope->CalculateProcess());
28432843
if (!runtime)
28442844
return impl();
2845+
#ifndef NDEBUG
28452846
// FIXME:
28462847
// No point comparing the results if the reflection data has more
28472848
// information. There's a nasty chicken & egg problem buried here:
@@ -2851,7 +2852,6 @@ CompilerType TypeSystemSwiftTypeRef::GetChildCompilerTypeAtIndex(
28512852
if (get_ast_num_children() <
28522853
runtime->GetNumChildren({this, type}, valobj).getValueOr(0))
28532854
return impl();
2854-
#ifndef NDEBUG
28552855
if (ShouldSkipValidation(type))
28562856
return impl();
28572857
std::string ast_child_name;

0 commit comments

Comments
 (0)