summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-mca/SourceMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/SourceMgr.h b/llvm/tools/llvm-mca/SourceMgr.h
index afde35f7e00..15a85a69569 100644
--- a/llvm/tools/llvm-mca/SourceMgr.h
+++ b/llvm/tools/llvm-mca/SourceMgr.h
@@ -40,7 +40,7 @@ public:
unsigned size() const { return Sequence.size(); }
const InstVec &getSequence() const { return Sequence; }
- bool hasNext() { return Current < (Iterations * size()); }
+ bool hasNext() const { return Current < (Iterations * size()); }
void updateNext() { Current++; }
const SourceRef peekNext() const {
OpenPOWER on IntegriCloud