summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-03-13 13:44:18 +0000
committerClement Courbet <courbet@google.com>2018-03-13 13:44:18 +0000
commit7efbea19be1e01ddb5955ca110be14e7ab12223f (patch)
tree0583a174ac1b30107857829f8eb11fbc44de6107 /llvm/tools
parent06507fd2837d61af1c448188665aafa0dd1781a0 (diff)
downloadbcm5719-llvm-7efbea19be1e01ddb5955ca110be14e7ab12223f.tar.gz
bcm5719-llvm-7efbea19be1e01ddb5955ca110be14e7ab12223f.zip
[llvm-mca] Fix unused variable warning in opt mode.
llvm-svn: 327394
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-mca/Backend.h2
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; }
OpenPOWER on IntegriCloud