From 3d9dca47b8cc62ee0e8264fee720df5f7321a46c Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sat, 14 Sep 2024 10:13:13 +0800 Subject: [PATCH] fix dwarf language code --- ssa/di.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssa/di.go b/ssa/di.go index 3875543d..66918f76 100644 --- a/ssa/di.go +++ b/ssa/di.go @@ -57,7 +57,7 @@ type CompilationUnit = *aCompilationUnit func (b diBuilder) createCompileUnit(filename, dir string) CompilationUnit { return &aCompilationUnit{ll: b.di.CreateCompileUnit(llvm.DICompileUnit{ - Language: llvm.DW_LANG_Go, + Language: llvm.DW_LANG_Go - 1, // strange, but it works File: filename, Dir: dir, Producer: "LLGo",