- Notifications
You must be signed in to change notification settings - Fork18.4k
Commit13af44f
committed
[release-branch.go1.1] cmd/gc: save local var list before inlining
««« CL 10210043 / b357e33bb414cmd/gc: save local var list before inliningThis avoids problems with inlining in genwrappers, whichoccurs after functions have been compiled. Compiling afunction may cause some unused local vars to be removed fromthe list. Since a local var may be unused due tooptimization, it is possible that a removed local var winds upbeingused in the inlined version, in which case hilarityensues.Fixes#5515.R=golang-dev, khr, daveCC=golang-devhttps://golang.org/cl/10210043»»»R=iant, rscCC=golang-devhttps://golang.org/cl/102420441 parentb87a963 commit13af44f
3 files changed
+38
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
| 285 | + | |
285 | 286 |
| |
286 | 287 |
| |
287 | 288 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
| 149 | + | |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
| |||
558 | 559 |
| |
559 | 560 |
| |
560 | 561 |
| |
561 |
| - | |
562 |
| - | |
| 562 | + | |
| 563 | + | |
563 | 564 |
| |
564 | 565 |
| |
565 | 566 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + |
0 commit comments
Comments
(0)