mirror of
https://github.com/golang/go
synced 2024-11-18 20:14:43 -07:00
fix handling of line numbers for first function
R=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=28949 CL=28951
This commit is contained in:
parent
c54699c977
commit
a343e5ceb1
@ -250,8 +250,9 @@ splitpcln(void)
|
|||||||
|
|
||||||
f = func;
|
f = func;
|
||||||
ef = func + nfunc;
|
ef = func + nfunc;
|
||||||
f->pcln.array = p;
|
|
||||||
pc = func[0].entry; // text base
|
pc = func[0].entry; // text base
|
||||||
|
f->pcln.array = p;
|
||||||
|
f->pc0 = pc - PcQuant;
|
||||||
line = 0;
|
line = 0;
|
||||||
for(; p < ep; p++) {
|
for(; p < ep; p++) {
|
||||||
if(f < ef && pc >= (f+1)->entry) {
|
if(f < ef && pc >= (f+1)->entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user