diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-12-12 23:29:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-12-12 23:29:10 +0000 |
commit | 35f33e3802becf1e1d9c5014c0ac8bafe0bdbc77 (patch) | |
tree | a3ebb151582706d18204c86ddf5b9e4fe73ed6c5 /libgo/runtime | |
parent | 8318d4ce56634f309a5d47da92ba4fccb72fec15 (diff) | |
download | gcc-35f33e3802becf1e1d9c5014c0ac8bafe0bdbc77.zip gcc-35f33e3802becf1e1d9c5014c0ac8bafe0bdbc77.tar.gz gcc-35f33e3802becf1e1d9c5014c0ac8bafe0bdbc77.tar.bz2 |
runtime: Delete from a nil map is now a no-op.
From-SVN: r194462
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/go-map-delete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-map-delete.c b/libgo/runtime/go-map-delete.c index b25760f..f8f8907 100644 --- a/libgo/runtime/go-map-delete.c +++ b/libgo/runtime/go-map-delete.c @@ -27,7 +27,7 @@ __go_map_delete (struct __go_map *map, const void *key) void **pentry; if (map == NULL) - runtime_panicstring ("deletion of entry in nil map"); + return; descriptor = map->__descriptor; |