File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lldb/source/Plugins/TypeSystem/Swift Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3053,7 +3053,7 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(
3053
3053
ci_args.push_back (sdk_triple.str ());
3054
3054
}
3055
3055
ci_args.push_back (" -gmodules" );
3056
- ci_args.push_back (" -g " );
3056
+ ci_args.push_back (" -gdwarf-4 " );
3057
3057
}
3058
3058
3059
3059
std::vector<swift::PluginSearchOption> plugin_search_options;
@@ -3192,7 +3192,7 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(
3192
3192
swift_ast_sp->RegisterSectionModules (*image_sp, module_names);
3193
3193
}
3194
3194
3195
- {
3195
+ if (!for_expressions && module_sp) {
3196
3196
auto ast_context = swift_ast_sp->GetASTContext ();
3197
3197
if (!ast_context) {
3198
3198
logError (" couldn't initialize Swift compiler" );
You can’t perform that action at this time.
0 commit comments