Skip to content

Commit bd3e758

Browse files
committed
[LLDB] Clamp expression evaluator DWARF version to 4
1 parent 9261ad4 commit bd3e758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@ void SwiftASTContext::SetCompilerInvocationLLDBOverrides() {
10331033
m_compiler_invocation_ap->getIRGenOptions();
10341034
ir_gen_opts.OutputKind = swift::IRGenOutputKind::Module;
10351035
ir_gen_opts.UseJIT = true;
1036+
// In the JIT we don't benefit from the indexed indirections in DWARF 5.
1037+
ir_gen_opts.DWARFVersion = 4;
1038+
ir_gen_opts.DebugInfoFormat = swift::IRGenDebugInfoFormat::DWARF;
10361039
// Allow deserializing @_implementationOnly dependencies
10371040
// to avoid crashing due to module recovery issues.
10381041
swift::LangOptions &lang_opts = m_compiler_invocation_ap->getLangOptions();

0 commit comments

Comments
 (0)