Skip to content

Commit 6ee3edd

Browse files
committed
Remove unnecessary scratch context initialization from NativeHashedStorageHandler.
rdar://88509849
1 parent 0421676 commit 6ee3edd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lldb/source/Plugins/Language/Swift/SwiftHashedContainer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,6 @@ NativeHashedStorageHandler::NativeHashedStorageHandler(
459459
m_value_stride = value_type_stride ? *value_type_stride : 0;
460460
if (TypeSystemSwift *type_system =
461461
llvm::dyn_cast_or_null<TypeSystemSwift>(key_type.GetTypeSystem())) {
462-
llvm::Optional<SwiftScratchContextReader> scratch_ctx_reader =
463-
nativeStorage_sp->GetSwiftScratchContext();
464-
if (!scratch_ctx_reader)
465-
return;
466462
auto *runtime = SwiftLanguageRuntime::Get(m_process);
467463
if (!runtime)
468464
return;

0 commit comments

Comments
 (0)