Skip to content

Commit 08f96c2

Browse files
author
git apple-llvm automerger
committed
Merge commit '32757f073852' from swift/release/5.5 into swift/main
2 parents f24579d + 32757f0 commit 08f96c2

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7631,9 +7631,7 @@ CompilerType
76317631
SwiftASTContext::GetTypeForFormatters(opaque_compiler_type_t type) {
76327632
VALID_OR_RETURN_CHECK_TYPE(type, CompilerType());
76337633

7634-
swift::Type swift_type(GetSwiftType(type));
7635-
assert(&swift_type->getASTContext() == GetASTContext());
7636-
return ToCompilerType({swift_type});
7634+
return {this, type};
76377635
}
76387636

76397637
LazyBool SwiftASTContext::ShouldPrintAsOneLiner(opaque_compiler_type_t type,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,10 @@ TypeSystemSwiftTypeRef::GetNumTemplateArguments(opaque_compiler_type_t type) {
26822682

26832683
CompilerType
26842684
TypeSystemSwiftTypeRef::GetTypeForFormatters(opaque_compiler_type_t type) {
2685-
return m_swift_ast_context->GetTypeForFormatters(ReconstructType(type));
2685+
auto impl = [&]() -> CompilerType { return {this, type}; };
2686+
VALIDATE_AND_RETURN(impl, GetTypeForFormatters, type,
2687+
(ReconstructType(type)),
2688+
(ReconstructType(type)));
26862689
}
26872690

26882691
LazyBool

lldb/test/API/lang/swift/foundation_value_types/decimal/TestSwiftFoundationTypeDecimal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
from lldbsuite.test.decorators import *
33

44
lldbinline.MakeInlineTest(__file__, globals(),
5-
decorators=[swiftTest,skipUnlessFoundation,skipIf(oslist=['windows']),
6-
expectedFailureAll(oslist=['macosx'],bugnumber="rdar://60396797",
7-
setting=('symbols.use-swift-clangimporter', 'false'))
5+
decorators=[swiftTest,skipUnlessFoundation,skipIf(oslist=['windows'])
86
])

0 commit comments

Comments
 (0)