mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofix -r mapdelete
R=golang-dev, r, adg, r, cw CC=golang-dev https://golang.org/cl/5266045
This commit is contained in:
parent
7242052bc7
commit
313c8224d5
28 changed files with 40 additions and 35 deletions
|
|
@ -588,7 +588,7 @@ func (p *Package) loadDWARF(f *File, names []*Name) {
|
|||
n.Const = strconv.Itoa64(n.Type.EnumValues[k])
|
||||
// Remove injected enum to ensure the value will deep-compare
|
||||
// equally in future loads of the same constant.
|
||||
n.Type.EnumValues[k] = 0, false
|
||||
delete(n.Type.EnumValues, k)
|
||||
} else if n.Kind == "const" && i < len(enumVal) {
|
||||
n.Const = strconv.Itoa64(enumVal[i])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue