Fix cppcheck variable shadow warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 25 Sep 2019 13:45:36 +0000 (13:45 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 25 Sep 2019 13:45:36 +0000 (13:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372872 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/ConstantsContext.h

index 75c6f83d59ff762e1b0be8deacddffb19b3407dc..1ec9087551f86644cb72f0759aaa93674a8197d3 100644 (file)
@@ -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.