mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/8e2d0c8d5cb Pull-request: https://github.com/SerenityOS/serenity/pull/11164
|
@ -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…
Reference in a new issue