diff --git a/llgo/debug/debug.go b/llgo/debug/debug.go index 683c6be53f6..2e641692ad0 100644 --- a/llgo/debug/debug.go +++ b/llgo/debug/debug.go @@ -136,8 +136,8 @@ func (d *DIBuilder) PushFunction(fnptr llvm.Value, sig *types.Signature, pos tok Line: line, Type: d.DIType(sig), IsDefinition: true, - Function: fnptr, }) + fnptr.SetSubprogram(d.fn) } // PopFunction pops the previously pushed function off the scope stack.