diff --git a/deps/ox/src/ox/std/source_location.hpp b/deps/ox/src/ox/std/source_location.hpp index 66195e09..54bff14e 100644 --- a/deps/ox/src/ox/std/source_location.hpp +++ b/deps/ox/src/ox/std/source_location.hpp @@ -40,7 +40,9 @@ class source_location { static consteval source_location current(Raw const pSl = __builtin_source_location()) noexcept { source_location sl; - sl.m_data = static_cast<__impl const*>(pSl); + if (pSl) { + sl.m_data = static_cast<__impl const*>(pSl); + } return sl; }