From 806bfa26366d6a5536f385846572d2bd16becfe5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 25 Sep 2019 13:45:36 +0000 Subject: [PATCH] Fix cppcheck variable shadow warning. NFCI. llvm-svn: 372872 --- llvm/lib/IR/ConstantsContext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/IR/ConstantsContext.h b/llvm/lib/IR/ConstantsContext.h index 75c6f83d59ff..1ec9087551f8 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.