commit | 16f832e007bfb5853a28bc8194f77d208d14eb7c | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Sun Apr 08 08:48:58 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Sun Apr 08 08:48:58 2018 +0000 |
tree | 2831da0869f099d213eb6dfe320cd6ec98f91bf8 | |
parent | 0edb3bf17dbb212ecb5bd75d14a77f208c673362 [diff] |
[ADT] Fix MapVector when 'Map::mapped_type != unsigned'. Previously MapVector assumed `Map::mapped_type` was `unsigned`. This caused problems when using MapVector with a user-specified map where this didn't hold (For example StringMap<unsigned>). This patch adjusts MapVector to use the same type as the underlying map, avoiding reference binding errors in functions like `insert`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329523 91177308-0d34-0410-b5e6-96231b3b80d8