diff options
| author | 2023-03-10 17:04:50 -0500 | |
|---|---|---|
| committer | 2023-03-12 22:10:27 -0400 | |
| commit | 9775a73d1a83237b584ac2bf49fb2eb9985dee5f (patch) | |
| tree | b97b7423c8a100a136346a3407bd2100d8506cb9 | |
| parent | kernel: remove unnecessary finalize calls (diff) | |
| download | yuzu-9775a73d1a83237b584ac2bf49fb2eb9985dee5f.tar.gz yuzu-9775a73d1a83237b584ac2bf49fb2eb9985dee5f.tar.xz yuzu-9775a73d1a83237b584ac2bf49fb2eb9985dee5f.zip | |
kernel: fix clang build
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index f35fa95b5..98ecaf12f 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -386,10 +386,10 @@ struct KernelCore::Impl { | |||
| 386 | 386 | ||
| 387 | // Gets the dummy KThread for the caller, allocating a new one if this is the first time | 387 | // Gets the dummy KThread for the caller, allocating a new one if this is the first time |
| 388 | KThread* GetHostDummyThread(KThread* existing_thread) { | 388 | KThread* GetHostDummyThread(KThread* existing_thread) { |
| 389 | auto initialize = [this](KThread* thread) { | 389 | const auto initialize{[](KThread* thread) { |
| 390 | ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess()); | 390 | ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess()); |
| 391 | return thread; | 391 | return thread; |
| 392 | }; | 392 | }}; |
| 393 | 393 | ||
| 394 | thread_local KThread raw_thread{system.Kernel()}; | 394 | thread_local KThread raw_thread{system.Kernel()}; |
| 395 | thread_local KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread); | 395 | thread_local KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread); |