From 16b0d2f91097df95efea23e353ebead08e1ec727 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 5 Jun 2025 16:54:34 -0700 Subject: [PATCH] [NFC] mark DebugCounter::Chunk method as const (#143039) --- llvm/include/llvm/Support/DebugCounter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/DebugCounter.h b/llvm/include/llvm/Support/DebugCounter.h index 9611586a92c3..89349d1ebffe 100644 --- a/llvm/include/llvm/Support/DebugCounter.h +++ b/llvm/include/llvm/Support/DebugCounter.h @@ -60,7 +60,7 @@ public: int64_t Begin; int64_t End; LLVM_ABI void print(llvm::raw_ostream &OS); - bool contains(int64_t Idx) { return Idx >= Begin && Idx <= End; } + bool contains(int64_t Idx) const { return Idx >= Begin && Idx <= End; } }; LLVM_ABI static void printChunks(raw_ostream &OS, ArrayRef);