[PATCH] D18371: StringMap::operator[] should not default construct the value when the key is in the map

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 13:35:29 PDT 2016


Ah, this is why.  LGTM.

> On 2016-Mar-22, at 12:55, Mehdi AMINI <mehdi.amini at apple.com> wrote:
> 
> joker.eph updated this revision to Diff 51323.
> joker.eph added a comment.
> 
> Remove unrelated changes
> 
> 
> http://reviews.llvm.org/D18371
> 
> Files:
>  include/llvm/ADT/StringMap.h
>  unittests/ADT/StringMapTest.cpp
> 
> <D18371.51323.patch>



More information about the llvm-commits mailing list