Commit 50e4508
committed
cmd/compile: fix import/export of Init and Def fields.
Change so that the Init and Def fields of assignments and OSELREVC2
nodes are exported/imported properly.
A quirk of iimport.go is that it automatically converts an ODCL node to
an ODCL/OAS sequence (where the OAS is to just zero out the declared
variable). Given that the Inits are properly fixed, o.stmt needs
adjustment for the OSELRECV2 case to skip over the new OAS nodes that
are inserted only on re-import.
Change-Id: Ic38017efca4b7ca9b3952ffbbfca067380902b7a
Reviewed-on: https://go-review.googlesource.com/c/go/+/350809
Run-TryBot: Dan Scales <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Matthew Dempsky <[email protected]>
Trust: Dan Scales <[email protected]>1 parent 3fa35b5 commit 50e4508
File tree
3 files changed
+46
-6
lines changed- src/cmd/compile/internal
- typecheck
- walk
3 files changed
+46
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | | - | |
1460 | | - | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1461 | 1474 | | |
1462 | | - | |
| 1475 | + | |
1463 | 1476 | | |
1464 | 1477 | | |
1465 | 1478 | | |
| |||
1495 | 1508 | | |
1496 | 1509 | | |
1497 | 1510 | | |
| 1511 | + | |
1498 | 1512 | | |
1499 | 1513 | | |
| 1514 | + | |
1500 | 1515 | | |
1501 | 1516 | | |
1502 | 1517 | | |
| |||
1517 | 1532 | | |
1518 | 1533 | | |
1519 | 1534 | | |
| 1535 | + | |
1520 | 1536 | | |
1521 | 1537 | | |
| 1538 | + | |
1522 | 1539 | | |
1523 | 1540 | | |
1524 | 1541 | | |
| |||
2065 | 2082 | | |
2066 | 2083 | | |
2067 | 2084 | | |
| 2085 | + | |
2068 | 2086 | | |
2069 | 2087 | | |
| 2088 | + | |
2070 | 2089 | | |
2071 | 2090 | | |
2072 | 2091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
1622 | | - | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
1623 | 1628 | | |
1624 | 1629 | | |
1625 | 1630 | | |
| |||
1636 | 1641 | | |
1637 | 1642 | | |
1638 | 1643 | | |
1639 | | - | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1640 | 1650 | | |
1641 | 1651 | | |
1642 | 1652 | | |
| |||
1721 | 1731 | | |
1722 | 1732 | | |
1723 | 1733 | | |
1724 | | - | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1725 | 1740 | | |
1726 | 1741 | | |
1727 | 1742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
944 | 950 | | |
945 | 951 | | |
946 | 952 | | |
| |||
0 commit comments