According to the standard, the behavior is undefined if [s, s+count) is not a valid range (even though the constructor may not access any of the elements of this range)[1].
At the time, libcxx gives runtime assertion in case of invokation of std::string_view ctor will nullptr passed.
This patch improves the diagnostic of the described case by making the compilation fail.
The same applies to std::string ctors. I will update the patch if the idea would proof useful.
[1]: https://en.cppreference.com/w/cpp/string/basic_string_view/basic_string_view
This part of the change is incorrect because std::string_view sv(nullptr, 0) is valid code.