diff options
-rw-r--r-- | llvm/tools/llvm-mca/Backend.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/Backend.h b/llvm/tools/llvm-mca/Backend.h index c2532d8a1f8..c01d01513ef 100644 --- a/llvm/tools/llvm-mca/Backend.h +++ b/llvm/tools/llvm-mca/Backend.h @@ -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; } |