File tree 1 file changed +8
-8
lines changed
src/cmd/compile/internal/gc
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ func compile(fn *Node) {
321
321
}(setlineno (fn ))
322
322
323
323
Curfn = fn
324
- dowidth (Curfn .Type )
324
+ dowidth (fn .Type )
325
325
326
326
if fn .Nbody .Len () == 0 {
327
327
if pure_go || strings .HasPrefix (fn .Func .Nname .Sym .Name , "init." ) {
@@ -335,25 +335,25 @@ func compile(fn *Node) {
335
335
336
336
saveerrors ()
337
337
338
- order (Curfn )
338
+ order (fn )
339
339
if nerrors != 0 {
340
340
return
341
341
}
342
342
343
343
hasdefer = false
344
- walk (Curfn )
344
+ walk (fn )
345
345
if nerrors != 0 {
346
346
return
347
347
}
348
348
if instrumenting {
349
- instrument (Curfn )
349
+ instrument (fn )
350
350
}
351
351
if nerrors != 0 {
352
352
return
353
353
}
354
354
355
355
// Build an SSA backend function.
356
- ssafn := buildssa (Curfn )
356
+ ssafn := buildssa (fn )
357
357
if nerrors != 0 {
358
358
return
359
359
}
@@ -363,9 +363,9 @@ func compile(fn *Node) {
363
363
Clearp (pc )
364
364
plist .Firstpc = pc
365
365
366
- setlineno (Curfn )
366
+ setlineno (fn )
367
367
368
- nam := Curfn .Func .Nname
368
+ nam := fn .Func .Nname
369
369
if isblank (nam ) {
370
370
nam = nil
371
371
}
@@ -402,7 +402,7 @@ func compile(fn *Node) {
402
402
// See test/recover.go for test cases and src/reflect/value.go
403
403
// for the actual functions being considered.
404
404
if myimportpath == "reflect" {
405
- if Curfn .Func .Nname .Sym .Name == "callReflect" || Curfn .Func .Nname .Sym .Name == "callMethod" {
405
+ if fn .Func .Nname .Sym .Name == "callReflect" || fn .Func .Nname .Sym .Name == "callMethod" {
406
406
ptxt .From3 .Offset |= obj .WRAPPER
407
407
}
408
408
}
You can’t perform that action at this time.
0 commit comments