File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1268,8 +1268,6 @@ TypeSystemSwiftTypeRefForExpressions::TypeSystemSwiftTypeRefForExpressions(
1268
1268
m_swift_ast_context =
1269
1269
llvm::dyn_cast_or_null<SwiftASTContext>(m_swift_ast_context_sp.get ());
1270
1270
}
1271
- // FIXME: Remove this line to make initialization lazy.
1272
- GetSwiftASTContext ();
1273
1271
}
1274
1272
1275
1273
void TypeSystemSwiftTypeRefForExpressions::PerformCompileUnitImports (
Original file line number Diff line number Diff line change @@ -2588,14 +2588,9 @@ llvm::Optional<SwiftScratchContextReader> Target::GetSwiftScratchContext(
2588
2588
2589
2589
StackFrameSP frame_sp = exe_scope.CalculateStackFrame ();
2590
2590
if (frame_sp && frame_sp.get () && swift_scratch_ctx) {
2591
- auto *swift_ast_ctx = llvm::dyn_cast_or_null<SwiftASTContextForExpressions>(
2592
- swift_scratch_ctx->GetSwiftASTContextOrNull ());
2593
- if (swift_ast_ctx && !swift_ast_ctx->HasFatalErrors ()) {
2594
- StackFrameWP frame_wp (frame_sp);
2595
- SymbolContext sc =
2596
- frame_sp->GetSymbolContext (lldb::eSymbolContextEverything);
2597
- swift_scratch_ctx->PerformCompileUnitImports (sc);
2598
- }
2591
+ SymbolContext sc =
2592
+ frame_sp->GetSymbolContext (lldb::eSymbolContextEverything);
2593
+ swift_scratch_ctx->PerformCompileUnitImports (sc);
2599
2594
}
2600
2595
2601
2596
if (!swift_scratch_ctx)
You can’t perform that action at this time.
0 commit comments