File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ static void PrintTagsAroundAddr(tag_t *tag_ptr) {
373
373
" description of short granule tags\n " );
374
374
}
375
375
376
- static uptr GetTopPc (StackTrace *stack) {
376
+ static uptr GetTopPc (const StackTrace *stack) {
377
377
return stack->size ? StackTrace::GetPreviousInstructionPc (stack->trace [0 ])
378
378
: 0 ;
379
379
}
@@ -417,12 +417,12 @@ class BaseReport {
417
417
void PrintAddressDescription () const ;
418
418
void PrintHeapOrGlobalCandidate () const ;
419
419
420
- ScopedReport scoped_report;
421
- StackTrace *stack = nullptr ;
422
- uptr tagged_addr = 0 ;
423
- uptr access_size = 0 ;
424
- uptr untagged_addr = 0 ;
425
- tag_t ptr_tag = 0 ;
420
+ const ScopedReport scoped_report;
421
+ const StackTrace *stack = nullptr ;
422
+ const uptr tagged_addr = 0 ;
423
+ const uptr access_size = 0 ;
424
+ const uptr untagged_addr = 0 ;
425
+ const tag_t ptr_tag = 0 ;
426
426
427
427
uptr stack_allocations_count = 0 ;
428
428
SavedStackAllocations stack_allocations[16 ];
@@ -753,7 +753,7 @@ class TailOverwrittenReport : public BaseReport {
753
753
~TailOverwrittenReport ();
754
754
755
755
private:
756
- uptr orig_size;
756
+ const uptr orig_size;
757
757
const u8 *expected;
758
758
};
759
759
You can’t perform that action at this time.
0 commit comments