From 73dd5f9c08b974b41754faf410be596e306478b2 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 12 Jul 2018 23:19:30 +0000 Subject: [PATCH] [llvm-mca] Constify SourceMgr::hasNext. NFC. llvm-svn: 336961 --- llvm/tools/llvm-mca/SourceMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-mca/SourceMgr.h b/llvm/tools/llvm-mca/SourceMgr.h index afde35f7e006..15a85a69569f 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 {