]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: remove use of obsolete map deletion syntax
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 17 Apr 2014 23:27:31 +0000 (23:27 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 17 Apr 2014 23:27:31 +0000 (23:27 +0000)
The use of this syntax was eliminated upstream in Go 992248b2adc2,
but this particular use slipped through somehow.

From-SVN: r209506

libgo/go/syscall/syscall_unix.go

index 966090a076a76cdaf70b08df58641356ead7586b..5559c7c69b7ee63ffa1922dc6f1758cbe0efdc1c 100644 (file)
@@ -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
 }