[llvm] [NFC] mark DebugCounter::Chunk method as const (PR #143039)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 16:55:12 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Florian Mayer (fmayer)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/143039.diff
1 Files Affected:
- (modified) llvm/include/llvm/Support/DebugCounter.h (+1-1)
``````````diff
diff --git a/llvm/include/llvm/Support/DebugCounter.h b/llvm/include/llvm/Support/DebugCounter.h
index 9611586a92c3b..89349d1ebffee 100644
--- a/llvm/include/llvm/Support/DebugCounter.h
+++ b/llvm/include/llvm/Support/DebugCounter.h
@@ -60,7 +60,7 @@ class DebugCounter {
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<Chunk>);
``````````
</details>
https://github.com/llvm/llvm-project/pull/143039
More information about the llvm-commits
mailing list