summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llgo/debug/debug.go2
1 files changed, 1 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud