BlockGenerators: Avoid redundant map lookup [NFC]

llvm-svn: 258660
This commit is contained in:
Tobias Grosser 2016-01-24 14:16:59 +00:00
parent 29cde35b43
commit 5c7f16be6b
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ Value *BlockGenerator::getOrCreateAlloca(Value *ScalarBase,
auto Addr = Map[ScalarBase];
if (GlobalMap.count(Addr))
return GlobalMap[Addr];
if (auto NewAddr = GlobalMap.lookup(Addr))
return NewAddr;
return Addr;
}