mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +00:00
Kernel: Add some implied auto qualifiers
This commit is contained in:
parent
9346b9589f
commit
04d75f4ff9
11 changed files with 30 additions and 30 deletions
|
@ -22,14 +22,14 @@ void __sanitizer_cov_trace_pc(void)
|
|||
return;
|
||||
}
|
||||
|
||||
auto thread = Thread::current();
|
||||
auto const* thread = Thread::current();
|
||||
auto tid = thread->tid();
|
||||
auto maybe_kcov_instance = KCOVDevice::thread_instance->get(tid);
|
||||
if (!maybe_kcov_instance.has_value()) [[likely]] {
|
||||
// not traced
|
||||
return;
|
||||
}
|
||||
auto kcov_instance = maybe_kcov_instance.value();
|
||||
auto* kcov_instance = maybe_kcov_instance.value();
|
||||
if (kcov_instance->state() < KCOVInstance::TRACING) [[likely]]
|
||||
return;
|
||||
kcov_instance->buffer_add_pc((u64)__builtin_return_address(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue