compiler: add debug info to goroutine start wrappers

This commit is contained in:
Ayke van Laethem
2020-03-28 17:06:37 +01:00
committed by Ron Evans
parent 5d539df216
commit 407149e323
2 changed files with 53 additions and 6 deletions
+2 -2
View File
@@ -1094,7 +1094,7 @@ func (b *builder) createInstruction(instr ssa.Instruction) {
panic("StaticCallee returned an unexpected value")
}
params = append(params, context) // context parameter
b.createGoInstruction(calleeFn.LLVMFn, params)
b.createGoInstruction(calleeFn.LLVMFn, params, "", callee.Pos())
} else if !instr.Call.IsInvoke() {
// This is a function pointer.
// At the moment, two extra params are passed to the newly started
@@ -1112,7 +1112,7 @@ func (b *builder) createInstruction(instr ssa.Instruction) {
default:
panic("unknown scheduler type")
}
b.createGoInstruction(funcPtr, params)
b.createGoInstruction(funcPtr, params, b.fn.RelString(nil), instr.Pos())
} else {
b.addError(instr.Pos(), "todo: go on interface call")
}