aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2021-09-28 11:20:18 -0700
committerVitaly Buka <vitalybuka@google.com>2021-09-28 15:42:21 -0700
commit7c1128f3bb6451e2bdced8f3f83f571c52e2a849 (patch)
treee4f21a4f8eb5f149a94c8ce1aeccce92f3657ff6 /compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
parent204d301bb1921431a853c0bfba32007c018df1d5 (diff)
downloadllvm-7c1128f3bb6451e2bdced8f3f83f571c52e2a849.zip
llvm-7c1128f3bb6451e2bdced8f3f83f571c52e2a849.tar.gz
llvm-7c1128f3bb6451e2bdced8f3f83f571c52e2a849.tar.bz2
[NFC][sanitizer] Return StackDepotStats by value
Differential Revision: https://reviews.llvm.org/D110644
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
index 453cdf6..c1302a0 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
@@ -22,7 +22,7 @@ class ChainedOriginDepot {
ChainedOriginDepot();
// Gets the statistic of the origin chain storage.
- StackDepotStats *GetStats();
+ StackDepotStats GetStats() const;
// Stores a chain with StackDepot ID here_id and previous chain ID prev_id.
// If successful, returns true and the new chain id new_id.