1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[llvm-mca] Fix unused variable warning in opt mode.

llvm-svn: 327394
This commit is contained in:
Clement Courbet 2018-03-13 13:44:18 +00:00
parent 767a644ff6
commit 0c8c714bb4

View File

@ -86,7 +86,7 @@ public:
const auto It = Instructions.find(Index);
assert(It != Instructions.end() && "no running instructions with index");
assert(It->second);
return *Instructions.find(Index)->second;
return *It->second;
}
void eraseInstruction(unsigned Index) { Instructions.erase(Index); }
unsigned getNumCycles() const { return Cycles; }