forked from OSchip/llvm-project
Fix cppcheck variable shadow warning. NFCI.
llvm-svn: 372872
This commit is contained in:
parent
367df1ebbc
commit
806bfa2636
|
@ -678,9 +678,9 @@ public:
|
|||
/// 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.
|
||||
|
|
Loading…
Reference in New Issue