mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Kernel: Do not return a null ref in Processor::current
on aarch64
Clang rejects binding a reference to a null pointer at compile-time. Let's just crash explicitly, instead of waiting for a null dereference to mess things up.
This commit is contained in:
parent
c369626ac1
commit
8e2d0c8d5c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public:
|
|||
return 0;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static Processor& current() { return *((Processor*)0); }
|
||||
ALWAYS_INLINE static Processor& current() { VERIFY_NOT_REACHED(); }
|
||||
|
||||
static void deferred_call_queue(Function<void()> /* callback */) { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue