Skip to content

Commit ff38851

Browse files
Merge pull request #4066 from adrian-prantl/88509849
Remove unnecessary scratch context initialization from NativeHashedSt…
2 parents 974d1cd + 6ee3edd commit ff38851

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)