diff --git a/src/Memory/__ScopedPtr.hpp b/src/Memory/__ScopedPtr.hpp index 0d7c6b3..7bfc88b 100644 --- a/src/Memory/__ScopedPtr.hpp +++ b/src/Memory/__ScopedPtr.hpp @@ -49,6 +49,9 @@ namespace ArbUt { inline T* non_null operator->() const noexcept { return _raw; } /// @brief Get the raw underlying pointer, and take ownership of it. This removes the existing pointer in here. + #if defined(__clang__) + [[clang::no_sanitize("nullability-assign")]] + #endif inline T* non_null TakeOwnership() noexcept { auto raw = _raw; _raw = nullptr;