)]}'
{
  "commit": "891470fbf767a09ac2b00cc58dbaf9ee2a67b09e",
  "tree": "41cc7adf70196198b262d520a277015ed40bd8a1",
  "parents": [
    "46121306d3ceb97a8bb2acb328d68426ad3aa805"
  ],
  "author": {
    "name": "Dan Scales",
    "email": "danscales@google.com",
    "time": "Thu Aug 12 18:39:24 2021 -0700"
  },
  "committer": {
    "name": "Dan Scales",
    "email": "danscales@google.com",
    "time": "Tue Aug 31 19:07:50 2021 +0000"
  },
  "message": "cmd/compile: fix handling of Defn field during stenciling\n\nWhen the Defn field of a name node is not an ONAME (for a closure\nvariable), then it points to a body node of the same function/closure.\nTherefore, we should not attempt to substitute it at the time we are\nsubstituting the local variables. Instead, we remember a mapping from the\nDefn node to the nodes that reference it, and update the Defn fields of\nthe copied name nodes at the time that we create the new copy of the\nDefn node.\n\nAdded some comments to the Defn field of ir.Name.\n\nMoved the Defn (and Outer code, for consistency) from namelist() to\nlocalvar(), since Defn needs to updated for all local variables, not\njust those in a closure. Fixed case where .Defn was not being set\nproperly in noder2 for type switches. Fixed another case where the Defn\nfield had to be updated during transformSelect() because the Defn node\nwas being completely changed to a new node.\n\nFixed some spacing in typeswitch2.go\n\nFixes #47676\nFixes #48016\n\nChange-Id: Iae70dd76575f4a647c1db79e1eba9bbe44bfc226\nReviewed-on: https://go-review.googlesource.com/c/go/+/346290\nTrust: Dan Scales \u003cdanscales@google.com\u003e\nRun-TryBot: Dan Scales \u003cdanscales@google.com\u003e\nTryBot-Result: Go Bot \u003cgobot@golang.org\u003e\nReviewed-by: Keith Randall \u003ckhr@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a2eec05013e1092076ec62524c1f3235bc5d1fd1",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/ir/name.go",
      "new_id": "9fb22378cd98deebc43e6136beb8b2a93bd07e28",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/ir/name.go"
    },
    {
      "type": "modify",
      "old_id": "00c467653099906ba3396d1a73930aaaeaf7737b",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/noder/stencil.go",
      "new_id": "cf3894e0967652ae54c00d99c17d8f462e9ba687",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/noder/stencil.go"
    },
    {
      "type": "modify",
      "old_id": "fc1f5836ffe93708c837566d0d173efefa5f89fb",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/noder/stmt.go",
      "new_id": "eeb994d34328696165a28f134d21b6ec42386493",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/noder/stmt.go"
    },
    {
      "type": "modify",
      "old_id": "a27f511769900b0d89209f54772bc6c67d9908c2",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/noder/transform.go",
      "new_id": "180891b5b50c81460b188aa2f6813d702e0e114c",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/noder/transform.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1b01624ce00873955baa671256faad249871bf54",
      "new_mode": 33188,
      "new_path": "test/typeparam/issue47676.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "582751e884028227d8a8b8a812114a6de7950039",
      "new_mode": 33188,
      "new_path": "test/typeparam/issue48016.go"
    },
    {
      "type": "modify",
      "old_id": "913c56321cc7a6f790483d608b55b37e14593727",
      "old_mode": 33188,
      "old_path": "test/typeparam/typeswitch2.go",
      "new_id": "0e434e1383adce5b5d3141edd1f33d6aabe6e4d4",
      "new_mode": 33188,
      "new_path": "test/typeparam/typeswitch2.go"
    }
  ]
}
