Skip to content

Commit 32e0a23

Browse files
committed
rearrange assert condition
1 parent 0e28747 commit 32e0a23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,9 +2452,9 @@ CompilerType TypeSystemSwiftTypeRef::GetChildCompilerTypeAtIndex(
24522452
ast_child_name = suffix.str();
24532453
assert((llvm::StringRef(child_name).contains('.') ||
24542454
Equivalent(child_name, ast_child_name)));
2455-
assert((Equivalent(llvm::Optional<uint64_t>(child_byte_size),
2456-
llvm::Optional<uint64_t>(ast_child_byte_size)) ||
2457-
ast_language_flags));
2455+
assert(ast_language_flags ||
2456+
(Equivalent(llvm::Optional<uint64_t>(child_byte_size),
2457+
llvm::Optional<uint64_t>(ast_child_byte_size))));
24582458
assert(Equivalent(llvm::Optional<uint64_t>(child_byte_offset),
24592459
llvm::Optional<uint64_t>(ast_child_byte_offset)));
24602460
assert(

0 commit comments

Comments
 (0)