[compiler-rt] b1a68b1 - [NFC][sanitizer] Make method const
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 23 13:50:18 PST 2021
Author: Vitaly Buka
Date: 2021-11-23T13:50:07-08:00
New Revision: b1a68b170c44e8d5298800a080444c0b82366e51
URL: https://github.com/llvm/llvm-project/commit/b1a68b170c44e8d5298800a080444c0b82366e51
DIFF: https://github.com/llvm/llvm-project/commit/b1a68b170c44e8d5298800a080444c0b82366e51.diff
LOG: [NFC][sanitizer] Make method const
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
index a02895080212..e6c61d9b772c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
@@ -43,7 +43,7 @@ StackStore::Id StackStore::Store(const StackTrace &trace) {
return reinterpret_cast<StackStore::Id>(stack_trace);
}
-StackTrace StackStore::Load(Id id) {
+StackTrace StackStore::Load(Id id) const {
if (!id)
return {};
const uptr *stack_trace = reinterpret_cast<const uptr *>(id);
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h b/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
index 35602d21f308..4e24fd2e6cf8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
@@ -23,7 +23,7 @@ class StackStore {
using Id = uptr;
Id Store(const StackTrace &trace);
- StackTrace Load(Id id);
+ StackTrace Load(Id id) const;
uptr Allocated() const;
void TestOnlyUnmap();
More information about the llvm-commits
mailing list