[ScopInfo] Do not lookup key twice [NFC]

Suggested-by: Michael Kruse <llvm@meinersbur.de>
llvm-svn: 304410
This commit is contained in:
Tobias Grosser 2017-06-01 12:46:51 +00:00
parent c84cc230b3
commit dff902fca7
1 changed files with 1 additions and 1 deletions

View File

@ -2019,7 +2019,7 @@ static std::string getCallParamName(CallInst *Call) {
auto Iterator = KnownNames.find(Name);
if (Iterator != KnownNames.end())
Name = "__" + KnownNames[Name];
Name = "__" + Iterator->getValue();
OS << Name;
for (auto &Operand : Call->arg_operands()) {
ConstantInt *Op = cast<ConstantInt>(&Operand);