File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 2525#include " lldb/Utility/RegisterValue.h"
2626#include " lldb/lldb-forward.h"
2727
28- #ifdef LLDB_ENABLE_SWIFT
29- #include " Plugins/TypeSystem/Swift/SwiftASTContext.h"
30- #include " Plugins/ExpressionParser/Swift/SwiftPersistentExpressionState.h"
31- #endif // LLDB_ENABLE_SWIFT
32-
3328#include < memory>
3429
3530using namespace lldb_private ;
@@ -662,12 +657,6 @@ class EntityVariableBase : public Materializer::Entity {
662657
663658 CompilerType valobj_type = valobj_sp->GetCompilerType ();
664659
665- #ifdef LLDB_ENABLE_SWIFT
666- if (SwiftASTContext::IsGenericType (valobj_type)) {
667- valobj_sp = valobj_sp->GetDynamicValue (lldb::eDynamicDontRunTarget);
668- }
669- #endif // LLDB_ENABLE_SWIFT
670-
671660 lldb_private::DataExtractor data;
672661
673662 Status extract_error;
@@ -1076,8 +1065,8 @@ class EntityResultVariable : public Materializer::Entity {
10761065 " system: %s" , status.AsCString ());
10771066 return ;
10781067 }
1079- persistent_state =
1080- target_sp-> GetSwiftPersistentExpressionState (*exe_scope );
1068+ persistent_state = target_sp-> GetPersistentExpressionStateForLanguage (
1069+ lldb::eLanguageTypeSwift );
10811070#endif // LLDB_ENABLE_SWIFT
10821071 } else {
10831072 auto type_system_or_err =
You can’t perform that action at this time.
0 commit comments