git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372872
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Hash once, and reuse it for the lookup and the insertion if needed.
LookupKeyHashed Lookup(MapInfo::getHashValue(Key), Key);
- auto I = Map.find_as(Lookup);
- if (I != Map.end())
- return *I;
+ auto ItMap = Map.find_as(Lookup);
+ if (ItMap != Map.end())
+ return *ItMap;
// Update to the new value. Optimize for the case when we have a single
// operand that we're changing, but handle bulk updates efficiently.