diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 23:27:31 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 23:27:31 +0000 |
commit | 4d063b924ec758da6024643d5fcf94e3a98c7ab2 (patch) | |
tree | 4637a8de3aba930b34de6b718664b0fb00af5b17 /libgo | |
parent | df4a4c96823f0c09e36c51e40f5c064d6d462a03 (diff) | |
download | gcc-4d063b924ec758da6024643d5fcf94e3a98c7ab2.tar.gz |
runtime: remove use of obsolete map deletion syntax
The use of this syntax was eliminated upstream in Go 992248b2adc2,
but this particular use slipped through somehow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209506 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/syscall/syscall_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/syscall_unix.go b/libgo/go/syscall/syscall_unix.go index 966090a076a..5559c7c69b7 100644 --- a/libgo/go/syscall/syscall_unix.go +++ b/libgo/go/syscall/syscall_unix.go @@ -153,7 +153,7 @@ func (m *mmapper) Munmap(data []byte) (err error) { if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { return errno } - m.active[p] = nil, false + delete(m.active, p) return nil } |