File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2659,18 +2659,15 @@ const swift::reflection::TypeInfo *SwiftLanguageRuntimeImpl::GetTypeInfo(
2659
2659
2660
2660
// Resolve all type aliases.
2661
2661
type = type.GetCanonicalType ();
2662
-
2662
+
2663
2663
// Resolve all generic type parameters in the type for the current
2664
- // frame. Archetype binding has to happen in the scratch context,
2665
- // so we lock it while we are in this function.
2664
+ // frame. Generic parameter binding has to happen in the scratch
2665
+ // context, so we lock it while we are in this function.
2666
2666
std::unique_ptr<SwiftASTContextLock> lock;
2667
2667
if (exe_scope)
2668
2668
if (StackFrame *frame = exe_scope->CalculateStackFrame ().get ()) {
2669
2669
ExecutionContext exe_ctx;
2670
- // FIXME: Should be
2671
- // frame->CalculateExecutionContext(exe_ctx);
2672
- // but all the other functions currently get this wrong, too!
2673
- m_process.GetTarget ().CalculateExecutionContext (exe_ctx);
2670
+ frame->CalculateExecutionContext (exe_ctx);
2674
2671
lock = std::make_unique<SwiftASTContextLock>(&exe_ctx);
2675
2672
type = BindGenericTypeParameters (*frame, type);
2676
2673
}
You can’t perform that action at this time.
0 commit comments