Skip to content

Commit dc39a8a

Browse files
author
Gwen Mittertreiner
committed
Fix Stable lldb Release Builds
ShouldSkipValidation is only defined #ifndef NDEBUG so it should only be called #ifndef NDEBUG
1 parent ff20ea9 commit dc39a8a

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
@@ -2759,9 +2759,9 @@ CompilerType TypeSystemSwiftTypeRef::GetChildCompilerTypeAtIndex(
27592759
if (get_ast_num_children() <
27602760
runtime->GetNumChildren({this, type}, valobj).getValueOr(0))
27612761
return impl();
2762+
#ifndef NDEBUG
27622763
if (ShouldSkipValidation(type))
27632764
return impl();
2764-
#ifndef NDEBUG
27652765
std::string ast_child_name;
27662766
uint32_t ast_child_byte_size = 0;
27672767
int32_t ast_child_byte_offset = 0;

0 commit comments

Comments
 (0)