diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-25 13:45:36 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-25 13:45:36 +0000 |
commit | 806bfa26366d6a5536f385846572d2bd16becfe5 (patch) | |
tree | adc52f8e686fda7c341772db70e319aeb7f5c351 /llvm/lib/IR/ConstantsContext.h | |
parent | 367df1ebbc9e2a9d7922cf81630552dcd0323734 (diff) | |
download | bcm5719-llvm-806bfa26366d6a5536f385846572d2bd16becfe5.tar.gz bcm5719-llvm-806bfa26366d6a5536f385846572d2bd16becfe5.zip |
Fix cppcheck variable shadow warning. NFCI.
llvm-svn: 372872
Diffstat (limited to 'llvm/lib/IR/ConstantsContext.h')
-rw-r--r-- | llvm/lib/IR/ConstantsContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/ConstantsContext.h b/llvm/lib/IR/ConstantsContext.h index 75c6f83d59f..1ec9087551f 100644 --- a/llvm/lib/IR/ConstantsContext.h +++ b/llvm/lib/IR/ConstantsContext.h @@ -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. |