gofix -r mapdelete

R=golang-dev, r, adg, r, cw
CC=golang-dev
https://golang.org/cl/5266045
This commit is contained in:
Russ Cox 2011-10-18 09:56:34 -04:00
parent 7242052bc7
commit 313c8224d5
28 changed files with 40 additions and 35 deletions

View file

@ -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])
}