forked from OSchip/llvm-project
BlockGenerators: Avoid redundant map lookup [NFC]
llvm-svn: 258660
This commit is contained in:
parent
29cde35b43
commit
5c7f16be6b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue