Skip to content

Commit 70ef109

Browse files
committed
[lldb] Fix TypeSystemSwiftTypeRe for NDEBUG builds
(cherry picked from commit cdee273)
1 parent 598f8c2 commit 70ef109

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,9 @@ TypeSystemSwiftTypeRef::GetSwiftName(const clang::Decl *clang_decl,
709709
ExtractSwiftName(reader->lookupObjCProtocolInfo(default_name));
710710
else if (llvm::isa<clang::TagDecl>(clang_decl))
711711
swift_name = ExtractSwiftName(reader->lookupTag(default_name));
712-
else
712+
else {
713713
assert(false && "unhandled clang decl kind");
714+
}
714715
if (!swift_name.empty())
715716
return swift_name;
716717
}
@@ -2157,11 +2158,11 @@ TypeSystemSwiftTypeRef::GetBitSize(opaque_compiler_type_t type,
21572158
return {};
21582159
};
21592160
FALLBACK(GetBitSize, (ReconstructType(type), exe_scope));
2160-
if (exe_scope && exe_scope->CalculateProcess())
2161+
if (exe_scope && exe_scope->CalculateProcess()) {
21612162
VALIDATE_AND_RETURN(impl, GetBitSize, type,
21622163
(ReconstructType(type), exe_scope),
21632164
(ReconstructType(type), exe_scope));
2164-
else
2165+
} else
21652166
return impl();
21662167
}
21672168

0 commit comments

Comments
 (0)